:root {
  --bg: #03050b;
  --bg-soft: #090d18;
  --panel: rgba(12, 17, 31, 0.72);
  --panel-strong: rgba(15, 20, 36, 0.9);
  --ink: #f4f7ff;
  --muted: #aeb7cf;
  --dim: #727b92;
  --silver: #e8eefc;
  --blue: #9fc2ff;
  --violet: #a78bff;
  --red: #d26b7a;
  --gold: #cbbd91;
  --line: rgba(230, 238, 255, 0.16);
  --line-soft: rgba(230, 238, 255, 0.08);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.56);
  --radius: 28px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 70% 5%, rgba(125, 155, 255, 0.22), transparent 27%),
    radial-gradient(circle at 15% 20%, rgba(95, 65, 150, 0.20), transparent 29%),
    radial-gradient(circle at 60% 85%, rgba(180, 65, 90, 0.13), transparent 33%),
    linear-gradient(180deg, #02030a 0%, #07101f 36%, #03050b 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(160,190,255,.55) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 1.1px);
  background-size: 180px 180px, 260px 260px, 390px 390px;
  background-position: 20px 40px, 120px 180px, 260px 60px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0 48%, rgba(0,0,0,.55) 100%);
  background-size: 70px 70px, 70px 70px, auto;
  mask-image: linear-gradient(to bottom, black, black 70%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
}

code {
  color: var(--silver);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: .9em;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(2, 3, 8, .88), rgba(2, 3, 8, .35));
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 35%, white 0 9%, #e9efff 10% 26%, rgba(140,185,255,.55) 27% 46%, transparent 47%);
  box-shadow: 0 0 28px rgba(180, 210, 255, .65);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--serif);
  letter-spacing: .07em;
  font-size: 1rem;
  white-space: nowrap;
}

.brand-text span {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.nav-links a,
.lang-toggle {
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.nav-links a:hover,
.lang-toggle:hover {
  color: white;
  border-color: var(--line);
  background: rgba(255,255,255,.055);
}

.nav-cta {
  color: #080b13 !important;
  background: linear-gradient(135deg, #ffffff, #dce7ff 48%, #9fc2ff) !important;
  font-weight: 800 !important;
  box-shadow: 0 0 30px rgba(159,194,255,.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 30px rgba(160,190,255,.12);
  font-weight: 750;
  transition: .22s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.34);
}

.button.primary {
  color: #060914;
  background: linear-gradient(135deg, white, #dce7ff 45%, #9fc2ff);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 42px rgba(159,194,255,.3);
}

.button.wattpad {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 113, 80, .92), rgba(170, 57, 74, .76));
  border-color: rgba(255, 150, 130, .32);
  box-shadow: 0 0 45px rgba(255, 95, 70, .14);
}

.social-instagram {
  background:
    linear-gradient(
      135deg,
      rgba(131,58,180,.92),
      rgba(225,48,108,.92),
      rgba(245,96,64,.92)
    );
  border-color: rgba(255,255,255,.18);
}

.social-tiktok {
  background:
    linear-gradient(
      135deg,
      rgba(0,242,234,.18),
      rgba(255,0,80,.28)
    ),
    rgba(15,20,36,.92);
  border-color: rgba(255,255,255,.14);
}

.social:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-lang="en"] .de { display: none !important; }
[data-lang="de"] .en { display: none !important; }

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, transparent, var(--silver), var(--blue), transparent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.glitch-hover {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.glitch-hover:hover {
  animation: anomaly-glitch 0.4s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: var(--red);
  text-shadow: -2px 0 var(--blue), 2px 2px var(--violet);
}

@keyframes anomaly-glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(2px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

@keyframes anomaly-flicker {
  0% { opacity: 1; transform: translateX(0); }
  2% { opacity: 0.8; transform: translateX(-2px); color: var(--red); }
  4% { opacity: 1; transform: translateX(0); }
  30% { opacity: 1; }
  31% { opacity: 0.4; transform: scale(0.99); }
  32% { opacity: 1; transform: scale(1); }
  98% { opacity: 1; }
  99% { opacity: 0.6; transform: translateY(1px); color: var(--violet); }
  100% { opacity: 1; }
}

.anomaly-text {
  animation: anomaly-flicker 4s infinite;
  display: block;
}