/* Ray D.O — palette pulled from the logo: deep navy, electric cyan, violet, magenta. */
:root {
  --bg: #06070f;
  --bg-elevated: #0b0d1a;
  --bg-card: #11142a;
  --text: #eef1fb;
  --text-muted: #a2a9c4;
  --cyan: #2fe0ff;
  --blue: #3b6bff;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --accent: var(--violet);
  --border: #1f2447;
  --brand-gradient: linear-gradient(90deg, #2fe0ff 0%, #6d7bff 45%, #d946ef 100%);
  --button-gradient: linear-gradient(90deg, #2563eb 0%, #7c4dff 55%, #c026d3 100%);
  --radius: 14px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a { color: inherit; }

code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.9em;
  color: var(--cyan);
}

.grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 7, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.nav {
  display: flex;
  gap: 26px;
}

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

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.nav-cta { flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--button-gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 77, 255, 0.35);
}

.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--cyan); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Invite buttons before the bot is public */
.btn-soon { opacity: 0.6; cursor: default; pointer-events: none; }

/* Hero */
.hero {
  padding: 72px 0 80px;
  text-align: center;
  background:
    radial-gradient(50% 55% at 25% 0%, rgba(47, 224, 255, 0.14), transparent 70%),
    radial-gradient(50% 55% at 78% 5%, rgba(217, 70, 239, 0.16), transparent 70%);
}

.hero-logo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 0 60px rgba(124, 77, 255, 0.45), 0 0 120px rgba(47, 224, 255, 0.18);
}

.eyebrow {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 780px;
  margin-inline: auto;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-command {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
section { padding: 80px 0; }

section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.stations {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.station-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}

.station-emoji { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.station-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.station-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--button-gradient);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; color: var(--text-muted); }

/* FAQ */
.faq {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq dl { max-width: 720px; margin: 0 auto; }
.faq-item { margin-bottom: 28px; }
.faq dt { font-weight: 700; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--text-muted); }

/* CTA band */
.cta-band-inner { text-align: center; }
.cta-band h2 { margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; color: var(--text-muted); }
.footer-inner a:hover { color: var(--text); }

/* Page headings for the inner pages */
.page-head {
  padding: 64px 0 40px;
  text-align: center;
  background:
    radial-gradient(50% 80% at 25% 0%, rgba(47, 224, 255, 0.10), transparent 70%),
    radial-gradient(50% 80% at 78% 0%, rgba(217, 70, 239, 0.12), transparent 70%);
}
.page-head h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-head p { margin: 0 auto; max-width: 640px; color: var(--text-muted); font-size: 1.1rem; }

.page-body { padding: 24px 0 80px; }

/* Commands */
.command-list { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }

.command-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.command-card h2 {
  text-align: left;
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cyan);
}

.command-card .command-args { color: var(--text-muted); font-weight: 400; }
.command-card p { margin: 8px 0 0; color: var(--text-muted); }
.command-card .command-tip { font-size: 0.92rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-family: inherit;
}

button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--cyan); color: var(--text); }
button.chip[aria-pressed="true"] {
  background: var(--button-gradient);
  border-color: transparent;
  color: #fff;
}

.notes {
  margin-top: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.notes h2 { text-align: left; font-size: 1.2rem; margin: 0 0 10px; }
.notes ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.notes li { margin-bottom: 6px; }

/* Votes */
@property --up { syntax: '<number>'; inherits: false; initial-value: 0; }

.chart-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  background-image: radial-gradient(80% 60% at 100% 0%, rgba(124, 77, 255, 0.10), transparent 70%);
}

.chart-card h2 { text-align: left; font-size: 1.1rem; margin: 0 0 18px; }

.donut {
  --up: 0;
  width: 168px;
  height: 168px;
  margin: 4px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#4ade80 0 calc(var(--up) * 1%), #ff4d7d calc(var(--up) * 1%) 100%);
  box-shadow: 0 0 40px rgba(124, 77, 255, 0.25);
  transition: --up 0.8s ease;
}
.donut.donut-empty { background: conic-gradient(var(--border) 0 100%); box-shadow: none; }

.donut-center {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--bg-card);
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-center strong { font-size: 1.9rem; line-height: 1.1; }
.donut-center span { color: var(--text-muted); font-size: 0.8rem; }

.legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.legend b { color: var(--text); margin-left: 4px; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-up { background: #4ade80; }
.dot-down { background: #ff4d7d; }
.dot-suggest { background: linear-gradient(90deg, var(--cyan), var(--violet)); }

.bar-row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 12px; margin-bottom: 10px; }
.bar-label { font-size: 0.88rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-total { font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-fill.up { background: linear-gradient(90deg, #22c55e, #4ade80); }
.bar-fill.down { background: linear-gradient(90deg, #ff4d7d, #ff7a9c); }
.bar-fill.suggest { background: linear-gradient(90deg, var(--cyan), var(--violet)); }

.vote-updated { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 0 0 14px; }
.filter-row { justify-content: center; margin: 0 0 28px; }

.vote-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }

.vote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.vote-card h2 { text-align: left; font-size: 1.2rem; margin: 0 0 4px; }
.vote-card-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 6px; }
.vote-card h3 {
  margin: 18px 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vote-bars { list-style: none; margin: 0; padding: 0; }
.vote-bars li { margin-bottom: 14px; }
.vote-bars li:last-child { margin-bottom: 0; }

.vote-bar-head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 6px; }
.vote-song { min-width: 0; overflow-wrap: anywhere; font-size: 0.95rem; }
.vote-song small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.vote-count { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 0.9rem; }
.vote-count .down { color: #ff7a9c; font-weight: 700; }
.vote-count .up { color: #4ade80; margin-left: 8px; }

.vote-empty { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.vote-note { text-align: center; color: var(--text-muted); max-width: 640px; margin: 40px auto 0; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 860px) {
  .station-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .command-list, .vote-grid, .chart-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .station-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 56px; }
  .hero-logo { width: 132px; height: 132px; }
  .bar-row { grid-template-columns: 88px 1fr 32px; gap: 8px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .bar-fill, .donut { transition: none; }
}

/* Privacy / Terms pages */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 760px; }
.legal h1 { margin: 0 0 6px; }
.legal h2 { margin: 36px 0 10px; font-size: 1.2rem; text-align: left; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; }
.legal ul { padding-left: 1.25rem; }
.legal strong { color: var(--text); }
.legal a { color: var(--cyan); }
.legal-updated { font-size: 0.9rem; }
