:root {
  --bg: #06000f;
  --bg-surface: #0e0019;
  --bg-card: rgba(120, 60, 200, 0.06);
  --accent: #8b5cf6;
  --accent-bright: #c084fc;
  --accent-dim: #6d28d9;
  --glow: rgba(139, 92, 246, 0.35);
  --glow-bright: rgba(192, 132, 252, 0.2);
  --text: #f5f3ff;
  --text-muted: #a78bfa;
  --text-faint: #6d5a8a;
  --border: rgba(139, 92, 246, 0.2);
  --border-bright: rgba(192, 132, 252, 0.4);
  --discord-bg: #1e1f22;
  --discord-msg: #2b2d31;
  --discord-bot: #5865f2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--glow);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 32px rgba(192, 132, 252, 0.5);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(139, 92, 246, 0.08);
}

.btn-lg { padding: 0.75rem 1.8rem; font-size: 1rem; border-radius: 10px; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 12px; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  gap: 3rem;
}

/* ── Version Badge ── */
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s;
}

.version-badge:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-bright);
  box-shadow: 0 0 16px var(--glow);
}

/* ── Discord DM Window ── */
.dm-window {
  width: min(520px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 0 60px var(--glow),
    0 0 120px rgba(139, 92, 246, 0.1),
    0 32px 80px rgba(0, 0, 0, 0.6);
  animation: window-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes window-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dm-header {
  background: #111214;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dm-header-dots {
  display: flex;
  gap: 6px;
}

.dm-header-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.dm-header-dots span:nth-child(1) { background: #ff5f57; }
.dm-header-dots span:nth-child(2) { background: #ffbd2e; }
.dm-header-dots span:nth-child(3) { background: #28ca41; }

.dm-header-title {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.dm-body {
  background: var(--discord-bg);
  padding: 1.5rem 1rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dm-date-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dm-date-divider::before,
.dm-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.dm-message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.dm-avatar-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dm-content { flex: 1; }

.dm-author {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dm-bot-badge {
  background: var(--discord-bot);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dm-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-cursor {
  display: inline-block;
  color: var(--accent-bright);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  font-size: 1rem;
  line-height: 1;
  vertical-align: text-bottom;
}

.dm-cursor.hidden { display: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.dm-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: opacity 0.3s;
}

.dm-typing.hidden { opacity: 0; pointer-events: none; }

.typing-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}

/* ── Hero CTA ── */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Sections ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 3.5rem;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }
.feature-card:nth-child(5) { animation-delay: 0.33s; }
.feature-card:nth-child(6) { animation-delay: 0.40s; }
.feature-card:nth-child(7) { animation-delay: 0.47s; }
.feature-card:nth-child(8) { animation-delay: 0.54s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feature-card:hover {
  border-color: var(--border-bright);
  background: rgba(120, 60, 200, 0.12);
  box-shadow: 0 0 30px var(--glow-bright);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.step:nth-child(1) { animation-delay: 0.05s; }
.step:nth-child(2) { animation-delay: 0.15s; }
.step:nth-child(3) { animation-delay: 0.25s; }
.step:nth-child(4) { animation-delay: 0.35s; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-bright);
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-bright);
  font-family: var(--mono);
  box-shadow: 0 0 20px var(--glow-bright);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── CTA Section ── */
.cta-section .section-inner {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

footer span, footer a {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-decoration: none;
}

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

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 6rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; max-width: 320px; }
}

/* ── Star Marker (sci-fi chart style) ── */
.star-marker {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Pulsing star dot with crosshair ticks ── */
.star-pip {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.star-pip::before,
.star-pip::after {
  content: '';
  position: absolute;
  background: var(--accent-bright);
  opacity: 0.45;
}

/* horizontal tick */
.star-pip::before {
  width: 14px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* vertical tick */
.star-pip::after {
  width: 1px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.star-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent), 0 0 18px var(--glow);
  animation: star-pulse 2.4s ease-in-out infinite;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ── Connector line ── */
.star-connector {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-bright), rgba(192,132,252,0.3));
  flex-shrink: 0;
}

/* ── Data readout with corner brackets ── */
.star-readout {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
}

/* top-left + top-right corners */
.star-readout::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-top: 1px solid var(--accent-bright);
  border-left: 1px solid var(--accent-bright);
  opacity: 0.7;
}

.star-readout::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 7px; height: 7px;
  border-bottom: 1px solid var(--accent-bright);
  border-right: 1px solid var(--accent-bright);
  opacity: 0.7;
}

.star-count {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}

.star-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ── Content Pages (TOS, PP, Changelog, Impressum) ── */
.page-header {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-header .section-label { margin-bottom: 0.5rem; }

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header .page-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.page-header .page-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-header .page-meta a:hover { color: var(--accent-bright); }

.prose {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  color: rgba(245, 243, 255, 0.85);
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 1.75rem 0 0.5rem;
}

.prose p { margin-bottom: 1rem; }

.prose a {
  color: var(--accent-bright);
  text-decoration: none;
}

.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--text); font-weight: 600; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li { margin-bottom: 0.35rem; }

.prose code {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent-bright);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.prose th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.prose tr:hover td { background: rgba(139, 92, 246, 0.05); }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Changelog version blocks ── */
.cl-version {
  margin-bottom: 3rem;
}

.cl-version-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cl-version-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-bright);
  font-family: var(--mono);
}

.cl-version-date {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.cl-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.25rem 0 0.4rem;
}

.cl-items {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.cl-items li {
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: rgba(245, 243, 255, 0.8);
}

.cl-items li strong { color: var(--text); }

.cl-compare {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.75rem;
}

.cl-compare a {
  color: var(--text-muted);
  text-decoration: none;
}

.cl-compare a:hover { color: var(--accent-bright); }

/* ── Impressum specifics ── */
.impressum-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.impressum-block dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}

.impressum-block dd {
  color: var(--text);
  margin: 0 0 0.75rem;
}

.impressum-block dd:last-child { margin-bottom: 0; }
