/* client.gamermc.pro – "Aurora Glass" wie Launcher und Client (docs/DESIGN.md) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-display: swap; src: url('fonts/inter-latin-900-normal.woff2') format('woff2'); }

:root {
  --bg: #06070a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-hover: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #9aa3b5;
  --dim: #5e6779;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --accent: linear-gradient(135deg, #3b82f6, #22d3ee);
  --success: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 450 16px/1.6 Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Aurora */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(47, 125, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 100% 40%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(600px 500px at 30% 110%, rgba(47, 125, 246, 0.10), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1440px, 100% - 64px); margin-inline: auto; }

/* Kopfzeile */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 7, 10, 0.6);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 24px rgba(59, 130, 246, 0.45); }
.brand b { font-weight: 800; }
.brand span { color: var(--muted); font-weight: 600; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color 160ms var(--ease), background 160ms var(--ease); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); background: var(--surface-2); }

/* Knoepfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--stroke); background: var(--surface); color: var(--text);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
  cursor: pointer;
}
.btn:hover { border-color: var(--stroke-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary {
  background: var(--accent); border-color: transparent; color: #04111f;
  box-shadow: 0 10px 36px rgba(34, 140, 238, 0.35);
}
.btn.primary:hover { box-shadow: 0 14px 44px rgba(34, 160, 238, 0.5); }
.btn.big { padding: 18px 28px; font-size: 17px; border-radius: 14px; }
.btn small { display: block; font-size: 12px; font-weight: 600; opacity: .75; }
.btn .two { text-align: left; line-height: 1.25; }

/* Hero */
.hero { padding: 96px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: 72px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
h1 {
  font-size: clamp(48px, 5.6vw, 92px); line-height: 1.0; font-weight: 900; letter-spacing: -0.04em;
  margin: 14px 0 18px;
}
h1 em, h2 em { font-style: normal; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { margin-top: 16px; font-size: 13px; color: var(--dim); }
.meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.shot {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--stroke); box-shadow: var(--shadow), 0 40px 120px rgba(47, 125, 246, 0.25);
  /* --p: 0 oben, 1 wenn weggescrollt (app.js) -> richtet sich beim Scrollen auf */
  transform: perspective(1600px) rotateY(calc(-8deg * (1 - var(--p, 0)))) rotateX(calc(4deg * (1 - var(--p, 0)))) translateY(calc(var(--p, 0) * -24px));
  transition: transform 120ms linear;
  will-change: transform;
}

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.stat { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

/* Abschnitte */
section { padding: 96px 0; }
.head { max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 10px; }
.head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), opacity 600ms var(--ease);
}
/* Lichtschein folgt der Maus (app.js setzt --mx/--my) */
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.16), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-2px); border-color: var(--stroke-hover); }
.card .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(34, 211, 238, .16));
  border: 1px solid rgba(59, 130, 246, .3);
}
.card .ic svg { width: 21px; height: 21px; stroke: #9cc8ff; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* Download */
.download {
  padding: 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.download .opts { display: grid; gap: 10px; min-width: 300px; }
.notice {
  display: none; margin-top: 18px; padding: 12px 16px; border-radius: 12px; font-size: 14px;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); color: #fde68a;
}
.notice.show { display: block; }
ol.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; margin-top: 20px; }
ol.steps li { counter-increment: s; position: relative; padding-left: 38px; min-height: 26px; color: var(--muted); font-size: 15px; }
ol.steps li code { overflow-wrap: anywhere; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--stroke);
}
code, pre { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: .9em; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--stroke); color: #cfe3ff; }
pre {
  padding: 18px 20px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--stroke);
  overflow-x: auto; color: #cfe3ff; line-height: 1.55; font-size: 13.5px;
}

/* Anti-Cheat */
.strikes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.strike { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.strike .bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-bottom: 14px; }
.strike.w .bar { background: var(--warn); }
.strike.s .bar { background: linear-gradient(90deg, #f87171, #fb923c); }
.strike.b .bar { background: #dc2626; box-shadow: 0 0 18px rgba(220, 38, 38, .6); }
.strike b { display: block; font-size: 15px; }
.strike span { font-size: 13px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
td { padding: 10px 0; border-bottom: 1px solid var(--stroke); vertical-align: top; }
td:first-child { width: 42%; padding-right: 16px; }
td:last-child { color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--stroke); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 160ms var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

footer { border-top: 1px solid var(--stroke); padding: 32px 0 48px; margin-top: 40px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a:hover { color: var(--text); }

/* Einblenden beim Scrollen */
/* Einblenden beim Scrollen, Geschwister nacheinander (--d setzt app.js) */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.left { transform: translateX(-36px); }
.js .reveal.right { transform: translateX(36px); }
.js .reveal.left.in, .js .reveal.right.in { transform: none; }

/* Fortschrittsbalken oben */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 20; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); }

/* Laufband mit Mod-Namen */
.marquee { overflow: hidden; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .row { display: flex; gap: 12px; width: max-content; animation: run 60s linear infinite; }
.marquee .row.rev { animation-direction: reverse; animation-duration: 70s; margin-top: 12px; }
.marquee:hover .row { animation-play-state: paused; }
.marquee span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.marquee span:nth-child(5n+1) { color: #cfe3ff; border-color: rgba(59, 130, 246, .35); }
@keyframes run { to { transform: translateX(-50%); } }

/* Schritte: Linie fuellt sich beim Scrollen */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.flow .card b { display: block; font-size: 44px; font-weight: 900; letter-spacing: -0.04em; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 14px; }

/* Grosses Schlussbild */
.final { text-align: center; padding: 120px 0; }
.final h2 { font-size: clamp(40px, 5vw, 80px); }
.final .cta { justify-content: center; }
.glow-orb { position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.28), transparent 65%); filter: blur(20px); pointer-events: none; z-index: -1; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.15; opacity: .7; } }

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero .wrap, .download, .two-col { grid-template-columns: 1fr; }
  .shot { transform: none; }
  .flow { grid-template-columns: 1fr; }
  .wrap { width: min(1440px, 100% - 32px); }
  .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .strikes { grid-template-columns: repeat(3, 1fr); }
  .download { padding: 24px; }
  .download .opts { min-width: 0; }
}
@media (max-width: 600px) {
  .grid, .strikes { grid-template-columns: 1fr; }
  .nav nav a.hide-sm { display: none; }
  .brand span { display: none; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
