/* ── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #0d0d0d;
  --c-bg2:         #1a1a2e;
  --c-bg3:         #16213e;
  --c-accent:      #7c3aed;
  --c-accent-h:    #9d5cf6;
  --c-accent-rgb:  124, 58, 237;
  --c-accent-glow: rgba(124, 58, 237, 0.4);
  --c-text:        #e2e8f0;
  --c-text-muted:  #94a3b8;
  --c-border:      rgba(255, 255, 255, 0.08);
  --c-glass:       rgba(255, 255, 255, 0.04);
  --c-glass-h:     rgba(255, 255, 255, 0.08);
  --c-bg-rgb:      13, 13, 13;
  --c-bg2-rgb:     26, 26, 46;

  /* Typography */
  --f-head:  'Rajdhani', sans-serif;
  --f-body:  'Inter', sans-serif;
  --f-mono:  'JetBrains Mono', monospace;

  /* Spacing */
  --gap:    1.5rem;
  --radius: 12px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 300ms ease;
  --t-slow:   600ms ease;

  /* Nav height */
  --nav-h: 64px;
}

/* ── Global particle canvas ───────────────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
  position: relative;
  z-index: 1;
}

body > footer {
  position: relative;
  z-index: 1;
}

img, video { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* ── Prose / Markdown links ───────────────────────────────────────────────── */
/* ── Prose / Markdown images ──────────────────────────────────────────────── */
.hero__lead img,
.about__centered img,
.guild__text img,
.md-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem auto;
  display: block;
}

/* Bildgrößen via Prefix im Alt-Text (sm|, md|, lg|) */
.md-img--sm { max-width: 280px  !important; }
.md-img--md { max-width: 560px  !important; }
.md-img--lg { max-width: 100%   !important; }

/* ── Prose / Markdown links ───────────────────────────────────────────────── */
.hero__lead a,
.about__centered a,
.guild__text a,
.md-content a {
  color: var(--c-accent-h);
  text-decoration: none;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.hero__lead a:hover,
.about__centered a:hover,
.guild__text a:hover,
.md-content a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--c-accent-h);
  text-underline-offset: 3px;
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent {
  color: var(--c-accent);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.section {
  padding: 6rem 0;
}

.section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-text);
}

/* ── Glass card ───────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--t-normal), border-color var(--t-normal),
              box-shadow var(--t-normal);
}

.glass-card:hover {
  background: var(--c-glass-h);
  border-color: rgba(var(--c-accent-rgb), 0.3);
  box-shadow: 0 0 24px var(--c-accent-glow);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--t-normal);
  white-space: nowrap;
}

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

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

.btn--danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn--danger:hover {
  background: #ef4444;
  border-color: #ef4444;
}
.btn--danger:disabled {
  background: #4b1f1f;
  border-color: #4b1f1f;
  color: rgba(255,255,255,.35);
  cursor: not-allowed;
  opacity: .6;
}

.btn--sm   { padding: 0.375rem 0.875rem; font-size: 0.8rem; }
.btn--full { width: 100%; }

/* ── Responsive: Sections & Utilities ────────────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 5rem 0; }
}
@media (max-width: 768px) {
  :root { --gap: 1rem; }
  .section { padding: 4rem 0; }
  .section__head { margin-bottom: 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
}


