/* ==========================================================================
   PoolRadar — design tokens
   Palette: dead radar screen, one live signal color, one hot-alert color.
   Type: Sora (display) / Inter (body) / IBM Plex Mono (data, feed, mints)
   ========================================================================== */

:root {
  --bg: #0a0e0c;
  --bg-raised: #0d1210;
  --card: #161c17;
  --card-hover: #1b2219;
  --border: #232b25;
  --border-bright: #2f3a31;
  --text: #eaf2ed;
  --muted: #8a9990;
  --muted-dim: #5c6960;
  --signal: #22c993;
  --signal-dim: #16412f;
  --alert: #ff7a59;
  --alert-dim: #4a2417;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--muted);
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: var(--signal);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #06130d;
}

.btn-primary:hover {
  background: #2ee0a6;
  border-color: #2ee0a6;
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   Hero — the radar. This is the one signature element; everything else
   stays quiet.
   ========================================================================== */

.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  margin: 14px 0 18px;
  font-weight: 600;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero-copy p.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted-dim);
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text);
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted-dim);
}

/* Radar dish -------------------------------------------------------------- */

.radar-box {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
}

.radar-dish {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0%, transparent 60%, rgba(34, 201, 147, 0.04) 100%),
    var(--bg-raised);
  border: 1px solid var(--border);
}

.radar-ring {
  position: absolute;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring.r1 { width: 25%; height: 25%; opacity: 0.9; }
.radar-ring.r2 { width: 50%; height: 50%; opacity: 0.7; }
.radar-ring.r3 { width: 75%; height: 75%; opacity: 0.5; }
.radar-ring.r4 { width: 100%; height: 100%; opacity: 0.35; }

.radar-crosshair {
  position: absolute;
  background: var(--border);
}
.radar-crosshair.h { top: 50%; left: 4%; right: 4%; height: 1px; }
.radar-crosshair.v { left: 50%; top: 4%; bottom: 4%; width: 1px; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(34, 201, 147, 0.55) 0deg,
    rgba(34, 201, 147, 0.12) 28deg,
    transparent 70deg,
    transparent 360deg
  );
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(34, 201, 147, 0.6);
  animation: blip 2.6s ease-out infinite;
}

.radar-blip.hot {
  background: var(--alert);
  box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.6);
  animation-name: blip-hot;
}

@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(34, 201, 147, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(34, 201, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 201, 147, 0); }
}

@keyframes blip-hot {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(255, 122, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); }
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

/* Live ticker strip -------------------------------------------------------- */

.ticker {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  overflow: hidden;
  position: relative;
}

.ticker::before {
  content: "LIVE FEED";
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  z-index: 2;
  background: var(--bg-raised);
  padding-right: 8px;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  padding: 30px 0 10px;
  animation: ticker-scroll 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.ticker-track span b {
  color: var(--signal);
  font-weight: 500;
}

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

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 12px 0 12px;
  font-weight: 600;
}

.section-head p {
  font-size: 16px;
}

/* Features ----------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--card);
  padding: 28px 24px;
  transition: background 0.15s ease;
}

.feature-card:hover {
  background: var(--card-hover);
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--signal);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
}

/* Pricing -------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.plan-card.featured {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), 0 18px 40px -20px rgba(34, 201, 147, 0.35);
}

.plan-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--signal);
  color: #06130d;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.plan-limit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--signal);
}

/* Footer ---------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 13px;
  max-width: 34ch;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   App shell (dashboard, app.html)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 14, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.app-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-dim);
}

.status-dot.live {
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(34, 201, 147, 0.6);
  animation: blip 2s ease-out infinite;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
}

.plan-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--signal);
  border: 1px solid var(--signal-dim);
  background: var(--signal-dim);
  padding: 2px 8px;
  border-radius: 999px;
}

.quota-banner {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.quota-banner.locked {
  border-color: var(--alert);
  background: var(--alert-dim);
  color: var(--text);
}

.quota-banner .mono {
  color: var(--text);
}

.feed-grid {
  display: grid;
  gap: 12px;
  padding-bottom: 60px;
}

.token-row {
  display: grid;
  grid-template-columns: 44px 1.6fr 1fr 1fr 1fr 90px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

@media (max-width: 900px) {
  .token-row {
    grid-template-columns: 40px 1fr;
    row-gap: 8px;
  }
  .token-row .col-meta { display: none; }
}

.token-row.new {
  animation: rowIn 0.5s ease;
  border-color: var(--signal-dim);
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.token-row.locked {
  opacity: 0.5;
  filter: grayscale(0.4);
  position: relative;
}

.token-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  object-fit: cover;
}

.token-name {
  font-weight: 600;
  font-size: 14px;
}

.token-mint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dim);
}

.token-col-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 2px;
}

.token-col-value {
  font-family: var(--font-mono);
  font-size: 13px;
}

.risk-ok { color: var(--signal); }
.risk-warn { color: var(--alert); }

.lock-cta {
  font-size: 12px;
  color: var(--alert);
  text-decoration: none;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.skeleton {
  height: 74px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--card) 0%, var(--card-hover) 50%, var(--card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
