@font-face {
  font-family: "Aeonik";
  src: url("/static/fonts/Aeonik-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("/static/fonts/Aeonik-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("/static/fonts/Aeonik-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #060510;
  --surface: #12111a;
  --surface-solid: #161522;
  --glass: rgba(18, 17, 26, 0.62);
  --glass-strong: rgba(18, 17, 26, 0.84);
  --line: rgba(203, 208, 235, 0.1);
  --line-strong: rgba(203, 208, 235, 0.18);
  --text: #f7f7f7;
  --wordmark: #cbd0eb;
  --muted: #9899a3;
  --muted-2: #686b76;
  --accent: #516af6;
  --accent-soft: rgba(81, 106, 246, 0.16);
  --critical: #ff622e;
  --critical-soft: rgba(255, 98, 46, 0.12);
  --warning: #ffc74f;
  --warning-soft: rgba(255, 199, 79, 0.12);
  --success: #21c95e;
  --sans: "Aeonik", "Helvetica Neue", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: transparent;
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: var(--bg) url("/static/assets/fobo-orbit.webp") center top / cover no-repeat;
  transform: scale(1.02);
  animation: orbit-depth 18s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 5, 16, 0.04) 0%, rgba(6, 5, 16, 0.12) 52%, var(--bg) 100%),
    radial-gradient(circle at 50% 42%, transparent 0, rgba(6, 5, 16, 0.12) 46%, rgba(6, 5, 16, 0.5) 100%);
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 2.2vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--wordmark);
  text-decoration: none;
}

.brand-wordmark {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.twitter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(203, 208, 235, 0.12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(18, 17, 26, 0.88);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease, background 150ms ease;
}

.twitter-link svg { width: 13px; fill: currentColor; }
.twitter-link:hover { color: #fff; background: rgba(30, 29, 42, 0.94); transform: translateY(-1px); }

main {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.wordmark {
  min-height: clamp(360px, 55svh, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wordmark h1 {
  margin: 0;
  color: var(--wordmark);
  font-size: clamp(92px, 11vw, 168px);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 60px rgba(4, 8, 28, 0.48);
  transform: translateX(-0.04em);
  animation: wordmark-in 800ms cubic-bezier(.2, .8, .2, 1) both;
}

.feed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -3svh;
  border: 1px solid transparent;
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(18, 17, 26, 0.62), rgba(18, 17, 26, 0.86)) padding-box,
    linear-gradient(155deg, rgba(255, 255, 255, 0.26), rgba(203, 208, 235, 0.04) 38%, rgba(203, 208, 235, 0.16)) border-box;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.feed::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 18%, transparent 72%, rgba(81, 106, 246, 0.035));
}

.list-head,
.token-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(190px, 0.72fr) minmax(300px, 1.3fr) minmax(170px, 0.65fr);
  gap: 28px;
}

.list-head {
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-strong);
  color: rgba(203, 208, 235, 0.45);
  background: rgba(203, 208, 235, 0.045);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.list-head span:last-child { text-align: right; }
.token-list { border: 0; }

.token-row {
  --severity: var(--warning);
  --severity-soft: var(--warning-soft);
  position: relative;
  align-items: center;
  min-height: 118px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 5, 16, 0.22);
  animation: row-in 320ms var(--delay, 0ms) both;
  transition: background 180ms ease, transform 180ms ease;
}

.token-row:last-child { border-bottom: 0; }

.token-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--severity);
  box-shadow: 0 0 14px color-mix(in srgb, var(--severity) 40%, transparent);
  opacity: 0.76;
}

.token-row:hover { background: rgba(203, 208, 235, 0.055); }
.token-row.critical { --severity: var(--critical); --severity-soft: var(--critical-soft); }
.token-row.is-new { animation: new-row 1.4s ease-out both; }

.token-identity { display: flex; min-width: 0; align-items: center; gap: 13px; }

.token-avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(203, 208, 235, 0.2);
  border-radius: 14px;
  color: var(--wordmark);
  background: rgba(203, 208, 235, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 7px 20px rgba(0, 0, 0, 0.2);
  font: 700 14px/1 var(--mono);
}

.token-avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity-copy { min-width: 0; }
.token-title { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.token-title strong { flex: 0 0 auto; font-size: 16px; line-height: 1.2; letter-spacing: -0.025em; }
.token-name { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted-2);
  background: transparent;
  cursor: copy;
  font: 10px/1.2 var(--mono);
  transition: color 150ms ease;
}

.address svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.address:hover, .address.copied { color: var(--accent); }

.token-market { display: flex; flex-wrap: wrap; gap: 13px 18px; }
.market-value { display: grid; gap: 4px; }
.market-value small { color: rgba(203, 208, 235, 0.4); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; }
.market-value strong { color: rgba(247, 247, 247, 0.8); font-size: 11px; font-weight: 600; white-space: nowrap; }
.market-value.protocol strong { color: #8292ff; }

.token-reasons { display: grid; gap: 7px; }
.reason { min-width: 0; display: flex; align-items: center; gap: 9px; }
.reason-source { flex: 0 0 auto; min-width: 58px; padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--severity) 20%, transparent); border-radius: 6px; color: var(--severity); background: var(--severity-soft); font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.reason-title { overflow: hidden; color: rgba(247, 247, 247, 0.7); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.token-actions { display: grid; justify-items: end; gap: 13px; }
.row-state { display: flex; align-items: center; gap: 9px; }
.severity-pill { padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--severity) 30%, transparent); border-radius: 999px; color: var(--severity); background: var(--severity-soft); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06); font-size: 8px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.token-actions time { color: rgba(203, 208, 235, 0.42); font: 9px/1 var(--mono); }
.links { display: flex; align-items: center; gap: 14px; }
.links a { color: var(--muted); font-size: 10px; font-weight: 600; text-decoration: none; transition: color 150ms ease; }
.links a:hover { color: var(--text); }
.solscan-link { display: inline-flex; align-items: center; gap: 4px; }
.solscan-link svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.empty-state { padding: 110px 24px; text-align: center; }
.empty-icon { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto; border: 1px solid rgba(33, 201, 94, 0.28); border-radius: 50%; color: var(--success); background: rgba(33, 201, 94, 0.1); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08); }
.empty-state h2 { margin: 17px 0 0; font-size: 19px; letter-spacing: -0.03em; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.feed-sentinel { height: 1px; }
.feed-status {
  min-height: 0;
  color: rgba(203, 208, 235, 0.48);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}
.feed-status:not(:empty) { min-height: 38px; padding: 13px 16px; border-top: 1px solid var(--line); }

@keyframes row-in {
  from { opacity: 0; transform: translateY(7px); }
}

@keyframes wordmark-in {
  from { opacity: 0; transform: translateX(-0.04em) translateY(20px) scale(.97); letter-spacing: -0.075em; }
}

@keyframes orbit-depth {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-0.5%, -0.5%, 0); }
}

@keyframes new-row {
  0% { background: rgba(81, 106, 246, 0.22); }
  100% { background: rgba(6, 5, 16, 0.22); }
}

@media (max-width: 1050px) {
  .list-head { display: none; }
  .token-list { border-top: 1px solid var(--line); }
  .token-row { grid-template-columns: minmax(240px, 1fr) minmax(170px, .7fr) minmax(270px, 1.2fr); }
  .token-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-left: 63px; }
}

@media (max-width: 760px) {
  body::before { background-position: 62% top; }
  .topbar { min-height: 64px; padding: 10px 14px; }
  main { width: min(100% - 16px, 1380px); padding-bottom: 40px; }
  .wordmark { min-height: clamp(300px, 48svh, 420px); }
  .wordmark h1 { font-size: clamp(76px, 22vw, 118px); }
  .feed { margin-top: -1svh; border-radius: 20px; }
  .token-row { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding: 18px 15px; }
  .token-row::before { top: 18px; bottom: 18px; }
  .token-market, .token-reasons, .token-actions { padding-left: 63px; }
  .reason-title { white-space: normal; }
  .token-actions { grid-column: auto; display: flex; flex-wrap: wrap; justify-content: space-between; justify-items: initial; }
}

@media (max-width: 430px) {
  .token-market, .token-reasons, .token-actions { padding-left: 0; }
  .twitter-link { padding-inline: 10px; }
  .twitter-link span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
