:root {
  --bg: #090909;
  --bg-raise: #121210;
  --fg: #f4f0e6;
  --muted: #9c978c;
  --line: rgba(244, 240, 230, 0.14);
  --accent: #d6ff4a;
  --accent-ink: #14160a;
  --glow: rgba(214, 255, 74, 0.22);
  --accent-line: rgba(214, 255, 74, 0.45);
  --danger: #ffb4a8;
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Syne", "Outfit", system-ui, sans-serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(980px 520px at 88% -8%, var(--glow), transparent 58%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 360;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

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

button,
input {
  font: inherit;
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
}

.brand-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #17170f;
}

.brand-name {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-name {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.site-name:hover {
  color: var(--fg);
}

body[data-view="index"] .site-name {
  display: none;
}

body:not([data-view="coin"]) .nav-links,
body:not([data-view="coin"]) .nav-end .btn {
  display: none;
}

body[data-view="index"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-view="index"] main {
  flex: 1;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--fg);
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn-lime {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 560;
}

.btn-lime:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-radius: 0;
  padding-inline: 2px;
  box-shadow: inset 0 -1px 0 var(--line);
}

.btn-ghost:hover {
  background: rgba(244, 240, 230, 0.04);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 28px 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
}

.hero-layout .hero-num {
  font-size: clamp(4.8rem, 9vw, 7.4rem);
}

.hero-layout .hero-line {
  font-size: clamp(1.65rem, 2.6vw, 2.55rem);
}

.coin-frame {
  justify-self: end;
}

.coin-portrait,
.coin-frame .coin-fallback {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  background: #17170f;
  box-shadow: 0 0 0 1px var(--accent-line), 0 28px 70px var(--glow);
}

.coin-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 140px;
  line-height: 1;
}

.lookup-form {
  max-width: 640px;
  margin-top: 36px;
}

.lookup-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.lookup {
  max-width: 640px;
  margin-top: 28px;
}

.lookup-hit {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lookup-hit img,
.lookup-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #17170f;
}

.lookup-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Geist", var(--sans);
  font-weight: 500;
}

.lookup-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lookup-copy strong {
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.lookup-copy span,
.lookup-copy code {
  color: var(--muted);
}

.lookup-copy code {
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-hit:hover strong {
  color: var(--accent);
}

.lookup-miss {
  margin: 0;
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.coin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: none;
}

.coin-card:hover strong {
  color: var(--accent);
}

.coin-card img,
.card-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  font-size: 36px;
}

.coin-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.coin-card span,
.coin-card code {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.coin-card code {
  margin-top: 6px;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

[hidden] {
  display: none !important;
}

.eyebrow,
.kicker,
.fine,
.ca-label,
.result-kicker,
.footer,
table,
.pool-meta {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Geist", "Outfit", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-num {
  display: block;
  font-weight: 500;
  font-size: clamp(5.2rem, 16vw, 8.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-line {
  display: block;
  margin-top: 0.12em;
  font-weight: 500;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ca-bar {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 48px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  max-width: 640px;
}

.ca-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-bar code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-bar code.is-empty {
  color: var(--muted);
}

.ca-copy {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 4px;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 transparent;
}

.ca-copy:hover {
  color: var(--accent);
  background: none;
  box-shadow: inset 0 -1px 0 var(--accent);
}

.marquee {
  overflow: hidden;
  border: 0;
  padding: 28px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: drift 42s linear infinite;
}

.marquee-track span::before {
  content: "·";
  margin-right: 36px;
  color: var(--accent);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.rule {
  display: block;
}

.rule-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "viz viz"
    "phase phase"
    "title title"
    "body body"
    "meter meter";
  gap: 0 24px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.rule-viz {
  position: relative;
  grid-area: viz;
  height: 88px;
  margin-bottom: 28px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
}

.bars i {
  display: block;
  width: 12px;
  height: 100%;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  transform-origin: bottom;
  transform: scaleY(0.3);
}

.bars i:nth-child(1) { --rise: 0.42; }
.bars i:nth-child(2) { --rise: 0.7; }
.bars i:nth-child(3) { --rise: 1; }
.bars i:nth-child(4) { --rise: 0.58; }
.bars i:nth-child(5) { --rise: 0.84; }

.rule[data-step="0"] .bars i {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--n, 0) * 70ms);
}

.bars i:nth-child(1) { --n: 0; }
.bars i:nth-child(2) { --n: 1; }
.bars i:nth-child(3) { --n: 2; }
.bars i:nth-child(4) { --n: 3; }
.bars i:nth-child(5) { --n: 4; }

.rule[data-step="1"] .bars i,
.rule[data-step="2"] .bars i {
  transform: scaleY(var(--rise));
}

.rule[data-step="2"] .bars {
  opacity: 0.2;
}

.scan {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 2px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  opacity: 0;
}

.rule[data-step="1"] .scan {
  opacity: 1;
  animation: sweep 1.8s ease-in-out infinite;
}

.rule-ten {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0;
  translate: 8px 6px;
}

.rule[data-step="2"] .rule-ten {
  opacity: 1;
  translate: 0 0;
  transition: 0.45s ease;
}

.rule-phase {
  grid-area: phase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: ping 1.8s ease-out infinite;
}

.rule-stage h3 {
  grid-area: title;
  margin: 0;
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.rule-body {
  grid-area: body;
  max-width: 36rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.rule-stage.is-in h3,
.rule-stage.is-in .rule-body {
  animation: rule-in 0.45s ease;
}

@keyframes rule-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.rule-meter {
  grid-area: meter;
  margin-top: 28px;
  height: 1px;
  max-width: 36rem;
  background: var(--line);
  overflow: hidden;
}

.rule-meter span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.rule-meter span.is-running {
  animation: rule-fill 3.6s linear;
}

.rule-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.rule-list button {
  width: auto;
  text-align: left;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  box-shadow: inset 0 -1px 0 transparent;
}

.rule-list button:hover {
  color: var(--fg);
}

.rule-list .is-on button {
  color: var(--fg);
  background: none;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.step-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.rule-list .is-on .step-index,
.rule-list .is-on strong {
  color: var(--accent);
}

.rule-list strong {
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.rule-detail {
  display: none;
}

@keyframes rise {
  to { transform: scaleY(var(--rise)); }
}

@keyframes sweep {
  from { left: 0; }
  to { left: calc(100% - 2px); }
}

@keyframes ping {
  70% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes rule-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.example-lead,
.faq p,
.result-body {
  margin: 0;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
}

.pool,
.example,
.result,
.check-form {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.pool-bar {
  display: grid;
  grid-template-columns: 9fr 2.2fr;
  gap: 20px;
  min-height: 0;
}

.pool-market,
.pool-air {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 12px;
  background: none;
  color: inherit;
  border-bottom: 2px solid var(--line);
}

.pool-air {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.pool-bar span {
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.9;
}

.pool-bar small {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pool-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.pool-meta div {
  min-width: 0;
}

.pool-meta dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pool-meta dd {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.example-lead {
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  padding-bottom: 8px;
}

td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

td:last-child,
th:last-child {
  text-align: right;
}

.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.check-form,
.result {
  padding: 0;
}

.check-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.field {
  display: flex;
  gap: 8px;
}

input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  overflow-x: auto;
}

input:focus {
  border-bottom-color: var(--accent);
}

.result[data-state="ok"] .result-title {
  color: var(--accent);
}

.result[data-state="bad"] .result-title {
  color: var(--danger);
}

.result-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-title {
  margin: 12px 0 8px;
  font-family: "Geist", var(--sans);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  max-width: 640px;
  padding-bottom: 20px;
}

.footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-name {
  color: var(--fg);
  font-weight: 560;
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

.footer p {
  margin: 0;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--fg);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  translate: -50% 12px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 9;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

@media (max-width: 860px) {
  .nav {
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links,
  .text-link {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .coin-frame {
    justify-self: start;
    order: -1;
  }

  .coin-portrait,
  .coin-frame .coin-fallback {
    width: 148px;
    height: 148px;
  }

  .coin-frame .coin-fallback {
    font-size: 72px;
  }

  .hero,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .split-layout,
  .check-grid,
  .pool-meta {
    grid-template-columns: 1fr;
  }

  .rule-list {
    gap: 8px 18px;
  }

  .pool-bar {
    grid-template-columns: 9fr 2.4fr;
    min-height: 0;
  }

  .field {
    flex-direction: column;
  }

  .footer {
    flex-wrap: wrap;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .bars i,
  .scan,
  .pulse,
  .rule-meter span {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
