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

:root {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-elevated: #242440;
  --bg-input: #2a2a4a;
  --text: #cdd6f4;
  --text-dim: #6c7086;
  --text-bright: #ffffff;
  --accent: #cba6f7;
  --accent-hover: #b491d4;
  --green: #a6e3a1;
  --red: #f38ba8;
  --blue: #89b4fa;
  --yellow: #f9e2af;
  --border: #313244;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 48px;
}

code {
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #1e1e2e;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-input); border-color: var(--accent); }

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-bright);
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-bright); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(203, 166, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(203, 166, 247, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 8px;
  font-weight: 500;
}

.hero-desc {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.hero-version {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── Discord Preview Card ─────────────────────────────────────────── */
.preview {
  padding: 0 0 80px;
}

.discord-card {
  max-width: 340px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discord-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.discord-dot.green { background: var(--green); }

.discord-body {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.discord-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  flex-shrink: 0;
}

.discord-info { min-width: 0; }

.discord-app {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.discord-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-detail {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 2px;
}

.discord-time {
  font-size: 0.8rem;
  color: var(--blue);
  margin-top: 4px;
}

/* ── Features ─────────────────────────────────────────────────────── */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Services ─────────────────────────────────────────────────────── */
.services {
  padding: 80px 0;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.service-pill {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s;
}
.service-pill:hover { transform: scale(1.05); }

.service-pill.watching { border-color: rgba(137, 180, 250, 0.3); color: var(--blue); }
.service-pill.listening { border-color: rgba(166, 227, 161, 0.3); color: var(--green); }

.services-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-dot.watching { background: var(--blue); }
.legend-dot.listening { background: var(--green); }

/* ── Setup Steps ──────────────────────────────────────────────────── */
.setup {
  padding: 80px 0;
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-bright);
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-copy a { color: var(--accent); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1.1rem; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
}
