/* ═══════════════════════════════════════════════════════════════════════════
   CEX Listings Monitor — Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  /* Surfaces */
  --bg:            #0a0a0c;
  --surface:       #111114;
  --surface2:      #161619;
  --surface3:      #1e1e22;
  --border:        rgba(255,255,255,.06);
  --border-hover:  rgba(255,255,255,.12);

  /* Text */
  --text:          #e8e8ed;
  --text-secondary:#8e8e9a;
  --muted:         #55555f;

  /* Accents */
  --accent:        #00df72;
  --accent-hover:  #00f580;
  --accent-dim:    rgba(0,223,114,.08);
  --accent-border: rgba(0,223,114,.18);
  --accent2:       #3b82f6;
  --warn:          #f5a623;
  --red:           #ff4d5a;
  --green:         #00df72;
  --green-bg:      rgba(0,223,114,.08);
  --yellow:        #f5a623;
  --orange:        #f97316;

  /* Radius */
  --radius:        10px;
  --radius-lg:     14px;

  /* Fonts */
  --font:          'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:          'Geist Mono', 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a       { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text);
}

::selection { background: rgba(0,223,114,.2); color: #fff; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Divider ── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
}

.nav-logo {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  letter-spacing: -.01em;
}
.nav-logo .logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #000;
  letter-spacing: 0;
}
.nav-logo .logo-sep { color: var(--muted); font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background .12s, color .12s;
}
.nav-links a:not(.btn):hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-links a[data-active="true"] { color: var(--text); }

.nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.nav-cta { display: flex; gap: 6px; margin-left: 4px; }

@media (max-width: 700px) {
  .nav-links a.hide-mobile { display: none; }
  .nav-inner { padding: 0 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all .18s;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 6px 12px; font-size: .76rem; border-radius: 7px; }
.btn-lg { padding: 11px 24px; font-size: .88rem; }

.btn-primary {
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0,223,114,.15);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited { color: #000 !important; }
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(0,223,114,.25);
}

.btn-discord {
  background: #5865F2;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.btn-discord:hover,
.btn-discord:focus,
.btn-discord:active,
.btn-discord:visited { color: #fff !important; }
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 4px 12px rgba(88,101,242,.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-links a { color: var(--muted); font-size: .78rem; font-weight: 500; transition: color .15s; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { color: var(--muted); font-size: .72rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   Inner Page Hero — full-width header with grid + glow (all non-landing pages)
   ═══════════════════════════════════════════════════════════════════════════ */
.inner-hero {
  position: relative;
  padding: 60px 24px 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.inner-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0,223,114,.05) 0%, transparent 55%);
}
.inner-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 80%);
}
.inner-hero-content {
  position: relative; z-index: 1;
  max-width: 740px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Page (shared inner-page layout for faq / terms / privacy / gdpr)
   ═══════════════════════════════════════════════════════════════════════════ */
.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.035em;
  color: var(--text);
  line-height: 1.1;
}
.page-sub  { color: var(--text-secondary); font-size: .9rem; margin-bottom: 0; line-height: 1.7; }
.page-date { font-size: .7rem; color: var(--muted); margin-top: 10px; font-family: var(--mono); letter-spacing: .04em; }

/* ── Legal sub-nav ── */
.legal-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 36px;
}
.legal-nav a { font-size: .82rem; font-weight: 600; color: var(--muted); padding: 2px 0; border-bottom: 2px solid transparent; }
.legal-nav a:hover { color: var(--text); text-decoration: none; }
.legal-nav a.current { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Doc styles (legal page content) ── */
.doc h2 { font-size: 1.1rem; font-weight: 700; margin-top: 40px; margin-bottom: 12px; color: var(--text); letter-spacing: -.01em; }
.doc h3 { font-size: .93rem; font-weight: 700; margin-top: 24px; margin-bottom: 8px; color: var(--text); }
.doc p  { color: var(--text-secondary); font-size: .9rem; margin-bottom: 14px; line-height: 1.75; }
.doc ul, .doc ol { padding-left: 22px; color: var(--text-secondary); font-size: .9rem; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; line-height: 1.7; }
.doc strong { color: var(--text); }
.doc .highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}
.doc .highlight p { margin: 0; }

/* ── Data table (privacy) ── */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .85rem; }
.data-table th { background: var(--surface2); color: var(--text); font-weight: 600; padding: 10px 14px; text-align: left; border: 1px solid var(--border); }
.data-table td { padding: 9px 14px; border: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
.data-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }

/* ═══════════════════════════════════════════════════════════════════════════
   Utility
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fade-in on scroll (applied via JS) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Label / eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}
