/* ============================================================
   vkoop.de - static stylesheet (no build step)
   ============================================================ */

:root {
  --bg-0: #04060d;
  --bg-1: #0a0f1e;
  --bg-2: #131b32;
  --fg: #eaeefb;
  --muted: #8b95ad;
  --faint: #5b6478;
  --accent: #7fb3e8;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(127, 179, 232, 0.10);
  --glow: rgba(127, 179, 232, 0.45);
  --radius: 14px;
  --maxw: 380px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  background:
    radial-gradient(1100px 760px at 50% -12%, var(--bg-2) 0%, var(--bg-1) 46%, var(--bg-0) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* soft vignette to focus the centre */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- ambient starfield canvas (behind everything) ---- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ============================================================
   Loader splash
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12vh;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s var(--ease);
}
html:not(.loading) .loader { opacity: 0; }

.loader__label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  text-indent: 0.42em; /* visually balance trailing letter-spacing */
}

.dots { display: inline-flex; gap: 0.28em; margin-left: 0.5em; }
.dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: dotPulse 1.4s var(--ease) infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.15); }
}

/* ============================================================
   Main linktree stage
   ============================================================ */
.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
}

/* content is hidden during the loading splash, then revealed */
#content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.loading #content {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.name {
  margin: 0 0 2.25rem;
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em;
  color: #f4f7ff;
  text-shadow: 0 0 34px rgba(127, 179, 232, 0.35);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: var(--maxw);
  max-width: 90vw;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--card-hover);
  box-shadow: 0 8px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.link__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.link:hover .link__icon { opacity: 1; }

.link__label { flex: 1 1 auto; text-align: left; }

.link__arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.link:hover .link__arrow {
  opacity: 0.8;
  transform: translate(0, 0);
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.82rem;
  color: var(--faint);
}
.foot a {
  text-decoration: none;
  padding: 0.3rem 0.2rem;
  transition: color 0.2s var(--ease);
}
.foot a:hover { color: var(--accent); }

/* ============================================================
   Legal / document pages
   ============================================================ */
.doc {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.4rem 5rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s var(--ease);
}
.back:hover { color: var(--accent); }

.doc h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #f4f7ff;
}

.prose h2 {
  margin: 2.4rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e6ecfa;
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #c2cadb;
  white-space: pre-line;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
  color: #c2cadb;
  font-size: 0.96rem;
  line-height: 1.75;
}
.prose li { margin: 0.25rem 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.doc-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--faint);
}
.doc-foot a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.doc-foot a:hover { color: var(--accent); }

@media (max-width: 540px) {
  .stage { padding-top: 2rem; }
  .name { margin-bottom: 1.75rem; }
}

/* ============================================================
   404 / error page
   ============================================================ */
.lost {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1.25rem;
  text-align: center;
}
.lost__code {
  margin: 0;
  font-size: clamp(5rem, 24vw, 11rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #f4f7ff;
  text-shadow: 0 0 50px rgba(127, 179, 232, 0.45);
}
.lost__title {
  margin: 0.6rem 0 0.6rem;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-indent: 0.18em;
  color: var(--fg);
}
.lost__msg {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}
