/* ============================================================
   UNITY ROLEPLAY — Landing Page
   Cyber / Neon, Purple → Blue (aus dem Logo)
   ============================================================ */

:root {
  --bg: #06070d;
  --bg-soft: #0a0c16;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fa;
  --muted: #969cb6;
  --muted-soft: #767c95;

  --purple: #8b45ff;
  --blue: #3d9dff;
  --grad: linear-gradient(125deg, var(--purple), var(--blue));
  --grad-soft: linear-gradient(125deg, rgba(139, 69, 255, 0.16), rgba(61, 157, 255, 0.16));

  --glow-strength: 1;

  --font-display: "Chakra Petch", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Global ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 18% -8%, rgba(139, 69, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 88% 4%, rgba(61, 157, 255, 0.12), transparent 60%);
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* mono / display utilities */
.mono { font-family: var(--font-mono); }
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 38px; height: 38px;
  filter: drop-shadow(0 0 10px rgba(123, 100, 255, calc(0.5 * var(--glow-strength))));
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links .lnk {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color .2s ease;
}
.nav-links .lnk:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; display: block; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(99, 92, 255, calc(0.35 * var(--glow-strength))),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  box-shadow:
    0 14px 40px rgba(99, 92, 255, calc(0.5 * var(--glow-strength))),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-discord {
  background: rgba(88, 101, 242, 0.12);
  color: #c7ccff;
  border: 1px solid rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.7);
  box-shadow: 0 12px 34px rgba(88, 101, 242, calc(0.3 * var(--glow-strength)));
}
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--line-strong); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .layer { position: absolute; inset: -10%; transition: opacity .6s ease; }

/* grid layer */
.layer.grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 78%);
  opacity: 0.25;
}
/* aurora blobs */
.layer.aurora { filter: blur(20px); }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: calc(0.55 * var(--glow-strength));
}
.blob.b1 {
  width: 620px; height: 620px;
  left: 4%; top: 2%;
  background: radial-gradient(circle, rgba(139, 69, 255, 0.85), transparent 65%);
}
.blob.b2 {
  width: 660px; height: 660px;
  right: 2%; top: 8%;
  background: radial-gradient(circle, rgba(61, 157, 255, 0.8), transparent 65%);
}
.blob.b3 {
  width: 520px; height: 520px;
  left: 38%; bottom: -16%;
  background: radial-gradient(circle, rgba(110, 90, 255, 0.6), transparent 65%);
}
/* spotlight beam */
.layer.beam {
  opacity: 0;
  background:
    radial-gradient(60% 70% at 50% 36%, rgba(123, 100, 255, 0.28), transparent 60%),
    conic-gradient(from 180deg at 50% 30%, transparent 0deg, rgba(139, 69, 255, 0.10) 40deg, transparent 80deg, transparent 280deg, rgba(61, 157, 255, 0.10) 320deg, transparent 360deg);
}
.layer.vignette {
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(6, 7, 13, 0.6) 100%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

/* hero content */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  width: 168px; height: 168px;
  filter: drop-shadow(0 0 40px rgba(123, 100, 255, calc(0.55 * var(--glow-strength))));
  margin-bottom: 26px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #74e6a3;
  margin-bottom: 22px;
}
.status-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ed573;
  box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.6);
  animation: pulse 2.4s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* IP copy chip */
.ip-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 18px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
}
.ip-chip .ip-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-soft); }
.ip-chip .ip-val { font-size: 15px; color: var(--text); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
.copy-btn.copied { color: #74e6a3; border-color: rgba(46, 213, 115, 0.4); background: rgba(46, 213, 115, 0.08); }
.copy-btn svg { width: 14px; height: 14px; }

/* HUD corner frame — nur Grid-Variante */
.hud-corner { display: none; position: absolute; width: 26px; height: 26px; z-index: 1; }
.hud-corner::before, .hud-corner::after { content: ""; position: absolute; background: var(--line-strong); }
.hud-corner::before { width: 100%; height: 2px; }
.hud-corner::after { width: 2px; height: 100%; }
.hud-corner.tl { top: 96px; left: 28px; }
.hud-corner.tr { top: 96px; right: 28px; }
.hud-corner.tr::before { right: 0; } .hud-corner.tr::after { right: 0; }
.hud-corner.bl { bottom: 40px; left: 28px; }
.hud-corner.bl::before { bottom: 0; } .hud-corner.bl::after { bottom: 0; }
.hud-corner.br { bottom: 40px; right: 28px; }
.hud-corner.br::before { right: 0; bottom: 0; } .hud-corner.br::after { right: 0; bottom: 0; }

/* ---- VARIANTS ---- */
[data-variant="aurora"] .layer.grid { opacity: 0.22; }
[data-variant="aurora"] .layer.aurora { opacity: 1; }
[data-variant="aurora"] .layer.beam { opacity: 0; }

[data-variant="grid"] .layer.grid { opacity: 0.6; }
[data-variant="grid"] .layer.aurora { opacity: 0.5; }
[data-variant="grid"] .layer.beam { opacity: 0; }
[data-variant="grid"] .hud-corner { display: block; }
[data-variant="grid"] .hero-logo { width: 138px; height: 138px; }

[data-variant="spotlight"] .layer.grid { opacity: 0.08; }
[data-variant="spotlight"] .layer.aurora { opacity: 0.22; }
[data-variant="spotlight"] .layer.beam { opacity: 1; }
[data-variant="spotlight"] .hero-logo { width: 196px; height: 196px; }
[data-variant="spotlight"] .status-badge { opacity: 0; height: 0; margin: 0; pointer-events: none; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section { position: relative; z-index: 1; }
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 16px 0 14px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 17px; text-wrap: pretty; }

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
.feature:hover { transform: translateY(-4px); background: var(--panel-2); }
.feature:hover::after { opacity: 0.7; }
.feature .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted-soft);
}
.feature .mark {
  width: 42px; height: 42px;
  margin: 18px 0 20px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
}
.feature .mark span {
  width: 15px; height: 15px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(123, 100, 255, calc(0.7 * var(--glow-strength)));
}
.feature.s-diamond .mark span { transform: rotate(45deg); border-radius: 2px; }
.feature.s-circle .mark span { border-radius: 50%; }
.feature.s-square .mark span { border-radius: 3px; }
.feature.s-ring .mark span { border-radius: 50%; background: transparent; border: 3px solid; border-image: var(--grad) 1; box-shadow: none; }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 9px;
  letter-spacing: 0.01em;
}
.feature p { color: var(--muted); font-size: 15px; }

/* ============================================================
   JOIN / SERVER INFO
   ============================================================ */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .25s ease, background .25s ease;
}
.step:hover { border-color: var(--line-strong); background: var(--panel-2); }
.step .num {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 92, 255, calc(0.35 * var(--glow-strength)));
}
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }

/* console panel */
.console {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 17, 30, 0.9), rgba(8, 9, 16, 0.9));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.console-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.console-top .tl-dots { display: flex; gap: 7px; }
.console-top .tl-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: var(--line-strong); }
.console-top .tl-dots i:nth-child(1) { background: rgba(139, 69, 255, 0.8); }
.console-top .tl-dots i:nth-child(2) { background: rgba(99, 92, 255, 0.8); }
.console-top .tl-dots i:nth-child(3) { background: rgba(61, 157, 255, 0.8); }
.console-top .ctitle { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); }
.console-body { padding: 8px 18px 18px; }
.crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.crow:last-child { border-bottom: none; }
.crow .ck { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-soft); }
.crow .cv { font-family: var(--font-mono); font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 12px; }
.crow .cv .online { color: #74e6a3; display: inline-flex; align-items: center; gap: 8px; }
.crow .cv .online .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ed573; box-shadow: 0 0 10px rgba(46,213,115,.7); }

/* ============================================================
   QUICK LINKS
   ============================================================ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  min-height: 150px;
}
.link-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-2); }
.link-card .lc-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--line-strong); color: #c8cdff; }
.link-card .lc-mark svg { width: 18px; height: 18px; }
.link-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 4px; }
.link-card p { color: var(--muted); font-size: 14px; }
.link-card .arrow { position: absolute; top: 24px; right: 24px; color: var(--muted-soft); transition: transform .25s ease, color .25s ease; }
.link-card:hover .arrow { transform: translate(3px, -3px); color: var(--text); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(139, 69, 255, 0.22), transparent 60%),
    radial-gradient(80% 120% at 50% 100%, rgba(61, 157, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(15, 17, 30, 0.7), rgba(8, 9, 16, 0.7));
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.05;
  margin-bottom: 16px;
  text-wrap: balance;
}
.cta-band p { color: var(--muted); font-size: 18px; max-width: 52ch; margin: 0 auto 32px; }
.cta-band .hero-actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand img { width: 34px; height: 34px; }
.footer-about p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 34ch; }
.fcol h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 16px; }
.fcol a { display: block; color: var(--muted); font-size: 15px; padding: 6px 0; transition: color .2s ease; }
.fcol a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--muted-soft); font-size: 13px;
}
.footer-bottom .disclaimer { font-family: var(--font-mono); font-size: 12px; max-width: 60ch; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(46, 213, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(34px, 26px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 20px); } }
@keyframes floatC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px, -28px); } }
@keyframes beamPulse { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }

[data-motion="on"] .blob.b1 { animation: floatA 16s ease-in-out infinite; }
[data-motion="on"] .blob.b2 { animation: floatB 19s ease-in-out infinite; }
[data-motion="on"] .blob.b3 { animation: floatC 22s ease-in-out infinite; }
[data-motion="on"] .layer.beam { animation: beamPulse 7s ease-in-out infinite; }

/* Scroll reveal — nur wenn JS aktiv */
body.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
body.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  body.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .nav-cta .lnk-portal { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 70px; }
  .feature-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
}
