/* ============ HMAKER · cyberpunk neon ============ */

:root {
  --bg: #04050d;
  --cyan: #00fff7;
  --magenta: #ff2bd6;
  --txt: #cfe9ff;
  --dim: #5f7f9f;
  --grid: rgba(0, 255, 247, 0.07);
  --font-disp: "Bungee", "Impact", sans-serif;
  --font-mono: "Share Tech Mono", "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255, 43, 214, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 8% 8%, rgba(0, 255, 247, 0.10), transparent 55%),
    radial-gradient(1200px 900px at 50% 120%, rgba(0, 255, 156, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--txt);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Neon grid */
.gfx-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}

/* Ambient glow blobs */
.gfx-blob {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.gfx-blob-a { width: 340px; height: 340px; top: -120px; right: -80px; background: var(--magenta); }
.gfx-blob-b { width: 380px; height: 380px; top: 20%; left: -160px; background: var(--cyan); }

/* Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.14) 0px,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* Full-page matrix backdrop */
#bg-matrix {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.16;
}

/* ============ Selection / scrollbar ============ */
::selection { background: var(--magenta); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--magenta));
  border: 2px solid var(--bg);
  border-radius: 5px;
}

/* ============ Cursor trail ============ */
#cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan), inset 0 0 8px rgba(0, 255, 247, 0.45);
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  transition: opacity 0.3s, width 0.18s, height 0.18s, border-color 0.18s;
  mix-blend-mode: screen;
}
#cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--magenta);
  pointer-events: none;
  z-index: 121;
  opacity: 0;
  mix-blend-mode: screen;
}
#cursor-ring.hot {
  width: 42px;
  height: 42px;
  border-color: var(--magenta);
  box-shadow: 0 0 16px var(--magenta), inset 0 0 10px rgba(255, 43, 214, 0.5);
}
body.has-cursor #cursor-ring, body.has-cursor #cursor-dot { opacity: 1; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 5, 13, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 247, 0.28);
  box-shadow: 0 0 24px rgba(0, 255, 247, 0.12);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 0 34px rgba(0, 255, 247, 0.28); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(0, 255, 247, 0.06);
  font-size: 20px;
  box-shadow: 0 0 12px rgba(0, 255, 247, 0.35), inset 0 0 10px rgba(0, 255, 247, 0.15);
}
.brand-text {
  font-family: var(--font-disp);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), #fff 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 247, 0.45));
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 7px 12px;
  color: var(--txt);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 8px var(--cyan);
  transition: right 0.3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 247, 0.8);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 12px; }

/* ============ Layout ============ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 22px 10vh;
  position: relative;
}

/* Spotlight hinter der Hero – rund & blasst zum Rand hin aus */
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--fo, 1);
  background: radial-gradient(260px 260px at var(--sx, 50%) var(--sy, 40%), rgba(255, 43, 214, 0.12), transparent 58%);
}

/* ============ Tux ============ */
.tux-stage {
  perspective: 900px;
}
.tux-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.tux-card img {
  width: min(320px, 74vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 20px rgba(0, 255, 247, 0.35))
    drop-shadow(0 0 52px rgba(255, 0, 200, 0.18))
    drop-shadow(0 20px 44px rgba(0, 0, 0, 0.65));
  animation: tuxglow 4s ease-in-out infinite;
  transition: filter 0.3s;
}
.tux-card:hover img {
  filter:
    drop-shadow(0 0 34px rgba(0, 255, 247, 0.6))
    drop-shadow(0 0 70px rgba(255, 0, 200, 0.32))
    drop-shadow(0 20px 44px rgba(0, 0, 0, 0.65));
}
@keyframes tuxglow {
  0%, 100% {
    filter:
      drop-shadow(0 0 20px rgba(0, 255, 247, 0.30))
      drop-shadow(0 0 52px rgba(255, 0, 200, 0.15))
      drop-shadow(0 20px 44px rgba(0, 0, 0, 0.65));
  }
  50% {
    filter:
      drop-shadow(0 0 34px rgba(0, 255, 247, 0.55))
      drop-shadow(0 0 72px rgba(255, 0, 200, 0.28))
      drop-shadow(0 20px 44px rgba(0, 0, 0, 0.65));
  }
}
@media (prefers-reduced-motion: reduce) {
  .tux-card img { animation: none; }
}

/* ============ Page (Unterseiten) ============ */
.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 22px 70px;
  animation: rise 0.5s both;
}
.page h1 {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 3px;
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 255, 247, 0.35));
}
.page .led {
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
  margin-bottom: 26px;
}
.page h2 {
  font-family: var(--font-disp);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 247, 0.55);
  margin: 34px 0 8px;
  text-transform: uppercase;
}
.page p, .page li { color: var(--txt); font-size: 15px; }
.page ul { padding-left: 20px; }
.page li::marker { color: var(--cyan); }

/* Neon flicker für den Header-LED */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
}
.brand-icon { animation: flicker 5s infinite; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============ Mobile ============ */
@media (max-width: 860px) {
  .hero { padding: 7vh 16px 9vh; }
  .tux-card { transform: none !important; }
  .tux-card img { width: min(260px, 70vw); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav ul { justify-content: flex-start; }
  .brand-text { font-size: 19px; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* Pointer ohne Maus: Effekte aus */
@media (pointer: coarse) {
  #cursor-ring, #cursor-dot { display: none; }
  #bg-matrix { opacity: 0.08; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #bg-matrix { display: none; }
}