/* TrustScore: dark-first, hairline borders, monochrome UI with color reserved for risk signals. */

:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171b;
  --border: #232328;
  --border-strong: #33333a;
  --text: #ededef;
  --muted: #8e8e97;
  --faint: #5e5e67;
  --primary-bg: #ededef;
  --primary-text: #09090b;
  --glow: rgba(255, 255, 255, 0.05);

  --red: #f4525a;
  --red-soft: rgba(244, 82, 90, 0.1);
  --amber: #f2a33a;
  --amber-soft: rgba(242, 163, 58, 0.1);
  --green: #3ecf8e;
  --green-soft: rgba(62, 207, 142, 0.1);
  --blue: #7aa7ff;
  --blue-soft: rgba(122, 167, 255, 0.1);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code { font-family: var(--mono); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.label {
  margin: 0 0 8px;
  font: 500 0.72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.meta { margin: 6px 0 0; color: var(--muted); font: 400 0.8rem/1.5 var(--mono); overflow-wrap: anywhere; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Blurring the live 3D scene behind the bar is costly, so it's full quality only. */
.q-full .nav {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linejoin: round; }
.brand-mark .tick { stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.875rem; color: var(--muted); }
.nav-links a { text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.nav-pill { white-space: nowrap; }
@media (max-width: 420px) { .nav-pill { display: none; } }
.nav-links a:hover { color: var(--text); }
.nav-pill {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 72px;
}

/* ---------- hero ---------- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 0 40px;
  text-align: center;
}
.hero > * { animation: fade-up 0.8s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: 0.06s; }
.hero > :nth-child(3) { animation-delay: 0.12s; }
.hero > :nth-child(4) { animation-delay: 0.18s; }
.hero > :nth-child(5) { animation-delay: 0.24s; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--muted);
}
.live-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2s var(--ease) infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 560px;
  margin: 20px auto 36px;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Command-bar style search */
.cmd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--glow) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.cmd:focus-within {
  border-color: var(--muted);
  box-shadow: 0 0 0 4px var(--glow), 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
.cmd-chain { position: relative; flex: 0 0 auto; }
.cmd-chain select {
  appearance: none;
  font: 500 0.875rem var(--sans);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 32px 10px 12px;
  cursor: pointer;
}
.cmd-chain select:focus-visible { outline: 2px solid var(--muted); outline-offset: 1px; }
.chev {
  position: absolute;
  right: 10px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  pointer-events: none;
}
.cmd input {
  flex: 1 1 auto;
  min-width: 0;
  font: 400 0.9rem var(--mono);
  color: var(--text);
  background: transparent;
  border: none;
  padding: 10px 8px;
}
.cmd input:focus { outline: none; }
.cmd input::placeholder { color: var(--faint); font-family: var(--sans); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 0.875rem/1 var(--sans);
  padding: 11px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { background: var(--primary-bg); color: var(--primary-text); }
.btn-primary:hover { opacity: 0.9; }
.btn-primary kbd {
  font: 500 0.72rem var(--mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary-text) 12%, transparent);
}
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); }

.examples {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--faint);
}
.chip {
  font: 500 0.78rem var(--sans);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip em { font-style: normal; color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--border-strong); background: var(--surface); }

/* ---------- loader ---------- */

.loader {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 20px 22px;
  animation: fade-up 0.4s var(--ease) both;
}
.loader-head { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.loader-head code { color: var(--muted); font-size: 0.85rem; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loader-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.loader-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--faint);
  transition: color 0.25s;
}
.loader-steps li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: background 0.25s, border-color 0.25s;
}
.loader-steps li.active { color: var(--text); }
.loader-steps li.active::before { border-color: var(--text); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.loader-steps li.done { color: var(--muted); }
.loader-steps li.done::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.status { max-width: 720px; margin: 16px auto 0; text-align: center; min-height: 1.4em; font-size: 0.9rem; color: var(--muted); }
.status.error {
  color: var(--red);
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  background: var(--red-soft);
  border-radius: 10px;
  animation: fade-up 0.35s var(--ease) both;
}
.status:empty { display: none; }

/* ---------- report ---------- */

.report {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}

.summary {
  position: sticky;
  top: 80px;
  padding: 22px;
  display: grid;
  gap: 22px;
  animation: fade-up 0.6s var(--ease) both;
}
.summary-token h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.score { padding-top: 20px; border-top: 1px solid var(--border); --tone: var(--text); --tone-soft: var(--surface-2); }
.score.high { --tone: var(--red); --tone-soft: var(--red-soft); }
.score.medium { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.score.low { --tone: var(--green); --tone-soft: var(--green-soft); }
.score-line { display: flex; align-items: baseline; gap: 6px; }
.score-num {
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-of { color: var(--faint); font: 400 1rem var(--mono); }
.badge {
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.78rem/1 var(--sans);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--tone);
  background: var(--tone-soft);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
  animation: fade-in 0.4s 0.9s var(--ease) both;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.meter span {
  height: 8px;
  border-radius: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.meter span.on {
  background: var(--tone);
  border-color: var(--tone);
  transform: scaleY(1.15);
}
.score-hint { margin: 10px 0 0; font-size: 0.78rem; color: var(--faint); }

.market { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.market:empty { display: none; }
.market div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.market dt { color: var(--muted); }
.market dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Findings */
.findings { min-width: 0; }
.findings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.findings-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.tally { display: flex; gap: 6px; flex-wrap: wrap; }
.tally span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.75rem/1 var(--mono);
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}
.tally span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.tally .high::before { background: var(--red); }
.tally .medium::before { background: var(--amber); }
.tally .pass::before { background: var(--green); }

.group { margin-bottom: 18px; }
.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 500 0.72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.group-title .count { color: var(--muted); }

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fade-up 0.5s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.045s);
  transition: background 0.15s;
}
.row:first-child { border-top: none; }
.row:hover { background: var(--surface-2); }
.row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--tone);
  opacity: 0;
}
.row.danger { --tone: var(--red); --tone-soft: var(--red-soft); }
.row.warn { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.row.info { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.row.good { --tone: var(--green); --tone-soft: var(--green-soft); }
.row.danger::before { opacity: 1; }

.row-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--tone);
  background: var(--tone-soft);
  margin-top: 1px;
}
.row-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row-title { margin: 0; font-weight: 500; font-size: 0.93rem; line-height: 1.4; }
.row-why { margin: 3px 0 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- features ---------- */

.features { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--border); }
.features h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 22px;
  transition: background 0.2s;
}
.feature:hover { background: var(--surface-2); }
.feature svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.feature:hover svg { transform: translateY(-2px); }
.feature h4 { margin: 14px 0 4px; font-size: 0.95rem; font-weight: 600; }
.feature p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer p { margin: 0 0 6px; max-width: 640px; }
.footer strong { color: var(--text); font-weight: 600; }

/* ---------- hero flow animation ---------- */

/* Fixed behind the whole page. z-index -1 keeps it under all content but above the page background. */
.flow-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh; /* fixed height, so a phone's address bar hiding doesn't resize the 3D scene */
  z-index: -1;
  overflow: hidden;
  /* Stays bright beside the hero, then dims so the sections below stay easy to read. */
  opacity: calc(1 - var(--hero-out, 0) * 0.55);
  will-change: opacity;
}
.flow-stage canvas { display: block; width: 100%; height: 100%; }
/* Narrow screens have no empty side, so the scene sits behind the text as a dim backdrop. */
@media (max-width: 880px) {
  .flow-stage { opacity: calc(0.3 - var(--hero-out, 0) * 0.1); }
  .flow-flag { display: none; }
  .hero .chip { background: var(--surface); }
}
body:has(.report:not([hidden])) .flow-stage { opacity: 0.22; transition: opacity 0.5s var(--ease); }
.no-3d .flow-stage { opacity: 0.35; }
.no-3d .flow-flag { display: none; }

.flow-flag {
  position: absolute;
  left: 50%;
  top: 30%;
  opacity: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font: 500 0.78rem/1 var(--mono);
  color: var(--red);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.flow-flag.show { animation: flag-pop 1.15s var(--ease) both; }
@keyframes flag-pop {
  0% { opacity: 0; transform: translate(-50%, -80%) scale(0.92); }
  14% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -135%); }
}

/* The hero fills the first screen. On wide screens the text sits left and the shield right. */
.hero { min-height: calc(100svh - 60px); }
@media (min-width: 881px) {
  .hero {
    max-width: 560px;
    margin: 0;
    padding: 32px 0 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }
  .hero .kicker { align-self: flex-start; }
  .hero .lede { margin-left: 0; }
  .hero .examples,
  .hero .recent { justify-content: flex-start; }
}

/* ---------- creator card ---------- */

.creator { margin-bottom: 20px; padding: 18px; animation: fade-up 0.5s var(--ease) both; }
.creator-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.creator-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.creator-badge {
  font: 500 0.78rem/1 var(--sans);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
}
.creator-badge.good { --tone: var(--green); }
.creator-badge.warn { --tone: var(--amber); }
.creator-badge.info { --tone: var(--blue); }
.creator-wallet { margin: 8px 0 0; font: 400 0.8rem var(--mono); color: var(--muted); }
.creator-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.creator-stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.creator-stat-value { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.creator-stat-label { font-size: 0.76rem; color: var(--muted); overflow-wrap: anywhere; }
.creator-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--faint); }

/* ---------- scroll effects ---------- */

.page-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--green);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
}

.nav { transition: background 0.3s; }
.hero {
  position: relative;
  z-index: 6; /* keeps the search dropdown above the sections after it */
  opacity: calc(1 - var(--hero-out, 0) * 1.25);
  transform: translateY(calc(var(--hero-out, 0) * -48px)) scale(calc(1 - var(--hero-out, 0) * 0.04));
  will-change: transform, opacity;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
}
.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease) var(--reveal-delay, 0ms),
    transform 1s var(--ease) var(--reveal-delay, 0ms),
    filter 0.9s var(--ease) var(--reveal-delay, 0ms);
}

/* ---------- search dropdown ---------- */

/* Entrance animations give later hero rows their own layers, so lift the search bar above them. */
.cmd { position: relative; z-index: 5; }
.cmd-input { flex: 1 1 auto; min-width: 0; }
.cmd-input input { width: 100%; }

.search-results {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  animation: fade-up 0.25s var(--ease) both;
}
.search-results .option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.search-results .option[aria-selected="true"],
.search-results .option:hover { background: var(--surface-2); }
.search-results .empty { padding: 12px; color: var(--muted); font-size: 0.875rem; }
.search-results .note {
  margin-bottom: 4px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--amber);
  background: var(--amber-soft);
}
.opt-logo {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font: 600 0.75rem var(--sans);
  color: var(--muted);
}
.opt-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opt-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.opt-text strong { font-weight: 600; font-size: 0.9rem; }
.opt-text span { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-chain {
  font: 500 0.7rem var(--mono);
  color: var(--muted);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.opt-liq { font: 400 0.8rem var(--mono); color: var(--muted); text-align: right; min-width: 70px; }

/* ---------- recent checks ---------- */

.recent {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--faint);
}
.recent-chip { display: inline-flex; align-items: center; gap: 6px; }
.recent-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.recent-chip.high .dot { background: var(--red); }
.recent-chip.medium .dot { background: var(--amber); }
.recent-chip.low .dot { background: var(--green); }
.recent-clear {
  background: none;
  border: none;
  color: var(--faint);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.recent-clear:hover { color: var(--muted); }

/* ---------- token logo + actions ---------- */

.token-row { display: flex; align-items: center; gap: 12px; }
.token-logo {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface-2);
}
.btn-wide { grid-column: 1 / -1; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- holder chart ---------- */

.holders { margin-top: 18px; padding: 18px 18px 14px; }
.holders-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.holders-head h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.holders-head .meta { margin: 0; }
.holder-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hbar {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 6px;
  outline: none;
  transition: background 0.15s;
}
.hbar:hover,
.hbar:focus-visible { background: var(--surface-2); }
.hbar-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hbar-name { font: 400 0.8rem var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-kind {
  flex: 0 0 auto;
  font: 500 0.66rem var(--sans);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.hbar-track { height: 10px; }
.hbar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  min-width: 2px;
  background: var(--text);
  border-radius: 0 4px 4px 0; /* rounded data end, flat baseline */
  transform-origin: left;
  animation: grow 0.7s var(--ease) both;
  animation-delay: calc(0.2s + var(--i) * 0.05s);
}
.hbar.muted .hbar-fill { background: var(--border-strong); }
.hbar.muted .hbar-name { color: var(--muted); }
.hbar-value { font: 400 0.8rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.holders-note { margin: 12px 6px 0; font-size: 0.78rem; color: var(--faint); }

.chart-tip {
  position: fixed;
  left: 0; top: 0;
  z-index: 50;
  display: grid;
  gap: 3px;
  max-width: 280px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  pointer-events: none;
}
.chart-tip strong { font-weight: 600; }
.chart-tip .tip-kind { color: var(--muted); }
.chart-tip code { font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }
.chart-tip .tip-note { color: var(--faint); font-size: 0.74rem; }

/* ---------- new coins feed ---------- */

.feed { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--border); }
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.feed-head .label { display: flex; align-items: center; gap: 8px; }
.feed-head h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600; letter-spacing: -0.035em; }
.feed-sub { margin: 6px 0 0; color: var(--muted); }

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.tab {
  font: 500 0.82rem var(--sans);
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong) inset; }

.feed-summary { min-height: 1.4em; margin: 20px 0 12px; font-size: 0.9rem; color: var(--muted); }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.feed-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  text-align: left;
  font: inherit;
  color: var(--text);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 112px;
  transition: border-color 0.15s, transform 0.15s var(--ease);
}
.feed-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feed-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.feed-name { display: grid; gap: 2px; min-width: 0; }
.feed-name strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-name span { font: 400 0.75rem var(--mono); color: var(--faint); }
.feed-score {
  --tone: var(--muted);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.74rem var(--sans);
  padding: 4px 9px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.feed-score.fresh { animation: pop-in 0.4s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.85); } }
.feed-score b {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font: 600 0.75rem var(--mono);
  color: var(--bg);
  background: var(--tone);
}
.feed-score.high { --tone: var(--red); color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.feed-score.medium { --tone: var(--amber); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.feed-score.low { --tone: var(--green); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.feed-score.pending,
.feed-score.none { padding: 4px 9px; }
.feed-card.is-pending .feed-score { animation: pulse 1.2s ease-in-out infinite; }
.feed-stats { display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.feed-flag { color: var(--red); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; margin: 0; }
.feed-note { margin: 14px 0 0; font-size: 0.78rem; color: var(--faint); }

.skeleton {
  cursor: default;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skeleton:hover { transform: none; border-color: var(--border); }

/* ---------- motion ---------- */

@keyframes grow { from { transform: scaleX(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: 0.45; } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .report { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  .nav-links a { display: none; }
  .cmd { flex-wrap: wrap; }
  .cmd-chain { flex: 1 1 100%; }
  .cmd-chain select { width: 100%; }
  .cmd-input { flex: 1 1 100%; position: relative; }
  .search-results { top: calc(100% + 6px); }
  .cmd input { padding: 12px 8px; }
  .cmd .btn { flex: 1 1 100%; padding: 13px; }
  .nav-links { gap: 12px; }
  .nav-links a[href="#feed"] { display: inline; }
  .hbar { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 50px; gap: 8px; }
  .search-results .option { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .opt-liq { display: none; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 auto; }
}

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