/* ================================================================
   HYPERHOOD — style.css
   Palette: Hyperliquid mint on deep teal-black, Robinhood green,
   Sherwood gold. Serious infrastructure, fully on-chain.
   ================================================================ */

:root {
  --bg: #04100d;
  --bg2: #071a15;
  --panel: #0a1f19;
  --panel2: #081b15;
  --line: #133527;
  --mint: #97fce4;
  --mint-2: #6fe3c6;
  --rh: #00c805;
  --lime: #ccff00;
  --gold: #ffc24b;
  --ember: #ff8a5c;
  --red: #ff5c6c;
  --ink: #e8fff7;
  --mut: #8fb3a8;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: #032019; }

.mono { font-family: var(--font-mono); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

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

code {
  font-family: var(--font-mono);
  color: var(--mint);
  background: rgba(151, 252, 228, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- background glow + grid ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 85% -5%, rgba(151, 252, 228, 0.09), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(0, 200, 5, 0.07), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 194, 75, 0.05), transparent 60%);
}
.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(151, 252, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 252, 228, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- chips, buttons ---------- */
.chip {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mut);
  background: rgba(10, 31, 25, 0.6);
  white-space: nowrap;
}
.chip.c-mint { color: #032019; background: var(--mint); border-color: var(--mint); font-weight: 700; }
.chip.c-gold { color: #241500; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.chip.c-red  { color: #fff; background: rgba(255, 92, 108, 0.16); border-color: var(--red); }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #032019;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(151, 252, 228, 0.35);
}
.btn-ghost { background: transparent; color: var(--mint); }
.btn-ghost:hover { border-color: var(--mint); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4, 16, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg,
.logo img { width: 28px; height: 28px; object-fit: contain; }
.wordmark {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--mint); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 72px;
}
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rh);
  box-shadow: 0 0 10px var(--rh);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

h1 {
  font-size: clamp(3.2rem, 8.5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(100deg, var(--mint) 15%, var(--rh) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tag {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: var(--mint);
  margin-top: 16px;
}
.lede {
  color: var(--mut);
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 54ch;
  margin-top: 14px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.micro { font-size: 11.5px; letter-spacing: 0.08em; color: var(--mut); margin-top: 18px; }

/* hero art */
.hero-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(340px 260px at 50% 42%, rgba(151, 252, 228, 0.12), transparent 70%),
    linear-gradient(160deg, var(--panel) 0%, var(--panel2) 100%);
  padding: 46px 30px 56px;
  overflow: hidden;
}
.hero-hood {
  display: block;
  width: 72%;
  max-width: 320px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(151, 252, 228, 0.35));
  cursor: pointer;
  transition: filter 0.3s ease;
}
.hero-hood.zap { animation: zap 0.6s ease; }
@keyframes zap {
  30% { filter: drop-shadow(0 0 60px rgba(204, 255, 0, 0.9)) brightness(1.6); }
}
.arrow-fly {
  position: absolute;
  width: 130px;
  top: 0;
  left: 0;
  filter: drop-shadow(0 0 8px rgba(255, 194, 75, 0.7));
  animation: fly 9s linear infinite;
  opacity: 0;
}
@keyframes fly {
  0%   { transform: translate(-24%, 460px) rotate(-38deg); opacity: 0; }
  6%   { opacity: 1; }
  38%  { opacity: 1; }
  44%  { transform: translate(560px, -60px) rotate(-38deg); opacity: 0; }
  100% { transform: translate(560px, -60px) rotate(-38deg); opacity: 0; }
}
.float-chip {
  position: absolute;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mint);
  border: 1px solid var(--line);
  background: rgba(4, 16, 13, 0.85);
  border-radius: 999px;
  padding: 5px 11px;
  animation: bob 5s ease-in-out infinite;
}
.fc-1 { top: 9%; left: 6%; }
.fc-2 { top: 38%; right: 4%; animation-delay: -1.7s; }
.fc-3 { bottom: 17%; left: 9%; animation-delay: -3.2s; color: var(--gold); }
@keyframes bob { 50% { transform: translateY(-9px); } }
.caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mut);
}

/* ---------- stat strip ---------- */
.statstrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 26, 21, 0.5);
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.s-label { font-size: 10px; letter-spacing: 0.14em; color: var(--mut); }
.s-value { font-size: 19px; font-weight: 800; color: var(--mint); }
.s-value.up { color: var(--rh); }
.s-foot { font-size: 10px; color: var(--mut); letter-spacing: 0.04em; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 13, 0.6);
}
.track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mut);
  animation: scroll 36s linear infinite;
}
.track .up { color: var(--mint); }
.track .down { color: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 104px 24px 0; }
section.container { padding-left: 24px; padding-right: 24px; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 12px; }
h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.sub { color: var(--mut); margin-top: 12px; font-size: 16.5px; }

/* ---------- ballad ---------- */
.acts {
  list-style: none;
  border-left: 1px solid var(--line);
  margin: 0 0 48px 8px;
}
.acts li {
  position: relative;
  padding: 0 0 30px 30px;
  max-width: 640px;
}
.acts li::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(151, 252, 228, 0.8);
}
.act-k { font-size: 11.5px; letter-spacing: 0.14em; color: var(--mint); margin-bottom: 6px; }
.acts p:not(.act-k) { color: var(--mut); font-size: 15.5px; }

.pillars, .engines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: linear-gradient(170deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(151, 252, 228, 0.4); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--mut); font-size: 14.5px; }
.card .k { font-size: 10px; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 12px; }

/* ---------- chain specs ---------- */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 13px;
}
.specs td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.specs td:first-child {
  color: var(--mut);
  letter-spacing: 0.12em;
  font-size: 11px;
  width: 180px;
  white-space: nowrap;
}

/* ---------- hoodscan ---------- */
.hoodscan {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel2);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.hs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 13, 0.5);
}
.hs-brand { display: flex; align-items: center; gap: 10px; }
.hs-name { font-weight: 800; letter-spacing: 0.18em; font-size: 13px; }
.hs-status {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--rh);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cube {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(151, 252, 228, 0.1);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  flex-shrink: 0;
}
.hs-search {
  display: flex;
  gap: 10px;
  padding: 18px 20px 8px;
}
.hs-search input {
  flex: 1;
  background: rgba(4, 16, 13, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.hs-search input:focus { border-color: var(--mint); }
.hs-search input::placeholder { color: var(--mut); opacity: 0.7; }
.hs-result {
  padding: 6px 22px 4px;
  font-size: 12.5px;
  color: var(--lime);
  letter-spacing: 0.03em;
}
.hs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 12px;
}
.hs-stat {
  background: var(--panel2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.hs-stat .s-value { font-size: 17px; }
#spark { width: 100%; height: 34px; margin-top: 2px; }
#sparkLine { filter: drop-shadow(0 0 4px rgba(151, 252, 228, 0.6)); }
.flash { animation: flash 0.5s ease; }
@keyframes flash { 30% { color: var(--lime); } }

.hs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.hs-panel { background: var(--panel2); padding: 18px; min-width: 0; }
.hs-panel h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mut);
  margin-bottom: 12px;
  font-weight: 700;
}
.feed { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feed .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  animation: rowIn 0.45s ease;
  min-width: 0;
}
.feed .row:hover { background: rgba(151, 252, 228, 0.04); border-color: var(--line); }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-8px); }
}
.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-main b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-main .sub-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.chip.m-mint { color: var(--mint); border-color: rgba(151, 252, 228, 0.35); }
.chip.m-gold { color: var(--gold); border-color: rgba(255, 194, 75, 0.4); }
.chip.m-green { color: var(--rh); border-color: rgba(0, 200, 5, 0.45); }
.chip.m-red { color: var(--red); border-color: rgba(255, 92, 108, 0.45); }
.age { font-size: 10px; color: var(--mut); letter-spacing: 0.05em; }

/* ---------- hoodonomics ---------- */
.bars { max-width: 780px; margin-bottom: 44px; }
.bar { margin: 16px 0; }
.bar-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--mut);
  margin-bottom: 6px;
}
.bar-top span:last-child { color: var(--mint); font-weight: 700; }
.bar-rail {
  height: 12px;
  border-radius: 999px;
  background: rgba(19, 53, 39, 0.5);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 999px; transition: width 1.2s ease; }
.f-mint  { background: linear-gradient(90deg, var(--mint-2), var(--mint)); }
.f-mint2 { background: rgba(151, 252, 228, 0.45); }
.f-green { background: linear-gradient(90deg, #00a005, var(--rh)); }
.f-gold  { background: linear-gradient(90deg, #d99a2b, var(--gold)); }
.f-ember { background: linear-gradient(90deg, #d95c2b, var(--ember)); }
.f-mut   { background: var(--mut); }

.tax { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tax-card { text-align: center; }
.tax-card .big {
  font-size: 42px;
  font-weight: 800;
  color: var(--mint);
  line-height: 1.1;
  margin: 6px 0;
}
.tax-card p:last-child { font-size: 13px; }

/* ---------- merry men ---------- */
.men {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.man .ava {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(4, 16, 13, 0.6);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.man .ava svg,
.man .ava img { width: 100%; height: 100%; object-fit: cover; }
.man .role { font-size: 9.5px; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 6px; }
.man h3 { margin-bottom: 2px; }
.man .aka { font-size: 11px; color: var(--mint); margin-bottom: 10px; }
.disclaimer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--mut);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ---------- heist map ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ph { font-size: 10.5px; letter-spacing: 0.18em; color: var(--gold); }
.phase h3 { margin-bottom: 12px; }
.phase ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.phase li { font-size: 12px; color: var(--mut); letter-spacing: 0.02em; }
.phase li.done { color: var(--mint); }

/* ---------- faq ---------- */
#faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, var(--panel) 0%, var(--panel2) 100%);
  padding: 18px 22px;
  margin-bottom: 10px;
  max-width: 780px;
}
#faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: 18px;
  flex-shrink: 0;
}
#faq details[open] summary::after { content: "−"; }
#faq details p { color: var(--mut); font-size: 14.5px; margin-top: 12px; }

/* ---------- footer ---------- */
footer {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 21, 0.6));
}
.foot-word {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  background: linear-gradient(180deg, rgba(151, 252, 228, 0.25), rgba(151, 252, 228, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 34px;
  user-select: none;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.foot-tag { color: var(--mut); font-size: 14px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials .chip { transition: border-color 0.15s ease, color 0.15s ease; }
.socials .chip:hover { border-color: var(--mint); color: var(--mint); }
.legal {
  color: var(--mut);
  font-size: 12px;
  line-height: 1.8;
  max-width: 860px;
  opacity: 0.8;
  margin-bottom: 12px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--panel);
  border: 1px solid var(--mint);
  color: var(--mint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 12px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .nav-links { display: none; }
  .pillars, .engines, .tax { grid-template-columns: 1fr; }
  .men, .phases { grid-template-columns: 1fr 1fr; }
  .hs-cols { grid-template-columns: 1fr; }
  .hs-stats { grid-template-columns: 1fr 1fr; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
}
@media (max-width: 560px) {
  .men, .phases { grid-template-columns: 1fr; }
  .hs-search { flex-direction: column; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}

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