/* ============================================================================
 * BBSS v6.16 · Global · ME + Polymarket
 *   - Single subtle radial behind hero only
 *   - No aurora, no scanlines, no rainbow gradient text
 * ============================================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { color-scheme: dark; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
}

/* ── ONE subtle radial behind hero area (Magic Eden style) ──────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: var(--z-aurora);
  background: var(--grad-hero);
}

/* Grain — kept very faint for texture */
#grain-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

#scanlines { display: none; }
#root { position: relative; z-index: var(--z-content); }

/* ── Type ───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 600;
}
p { margin: 0; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: transparent; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--brand-magenta); color: #FFFFFF; }
::-moz-selection { background: var(--brand-magenta); color: #FFFFFF; }

/* Tabular nums for trading data */
.mono, .num, .stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Scrollbar (thin, neutral) ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }
::-webkit-scrollbar-corner { background: var(--bg-0); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
/* gradient-text: cyan → indigo → magenta to match logo */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.gradient-text-pink, .gradient-text-magenta {
  color: var(--brand-magenta);
}
.gradient-text-cyan {
  color: var(--brand-cyan);
}
.gradient-text-purple {
  color: var(--brand-purple);
}
.gradient-text-data, .gradient-text-lime {
  color: var(--up);
}

.up { color: var(--up); }
.down { color: var(--down); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-dim { color: var(--text-dim); }
.text-up { color: var(--up); }
.text-down { color: var(--down); }
.text-warning { color: var(--warning); }

/* Focus rings — magenta brand */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-magenta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Page transition (subtle fade up) */
.c-content { animation: pageEnter 0.32s var(--ease) forwards; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
/* After animation, clear it so transform doesn't create a containing block for fixed children */
.c-content { animation-fill-mode: forwards; }
body.modal-open { overflow: hidden; }

/* Container */
.container { max-width: 1380px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1520px; margin: 0 auto; padding: 0 24px; }

/* Scroll progress (animation-timeline: scroll() where supported) */
@supports (animation-timeline: scroll()) {
  body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    height: 2px; width: 0;
    background: var(--brand-magenta);
    z-index: 9999;
    pointer-events: none;
    animation: scrollProgress linear;
    animation-timeline: scroll(root);
  }
  @keyframes scrollProgress {
    to { width: 100%; }
  }
}

/* Section spacing */
section + section { margin-top: 56px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.section-title .badge { font-size: 11px; padding: 3px 8px; border-radius: var(--radius-full); border: 1px solid var(--border-2); color: var(--text-3); }
