/* Blauerdrache87 — Web3 / Neon-Tech */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.muted {
  color: var(--color-muted);
}

.font-display {
  font-family: "Orbitron", sans-serif;
}

.font-sans {
  font-family: "Space Grotesk", sans-serif;
}

/* Loader */
.brand-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  transition: opacity 0.45s ease;
}

.brand-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.brand-loader__inner {
  text-align: center;
}

.brand-loader__logo {
  width: 7rem;
  height: 7rem;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 153, 255, 0.45));
  animation: floaty 4s ease-in-out infinite;
}

.brand-loader__name {
  margin: 1rem 0 1.5rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.brand-loader__bar {
  width: 12rem;
  height: 4px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.brand-loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-glow);
  transition: width 0.1s linear;
}

/* Glow cursor */
.glow-cursor {
  display: none;
  position: fixed;
  z-index: 90;
  width: 16rem;
  height: 16rem;
  margin-left: -8rem;
  margin-top: -8rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-glow) 22%, transparent) 0%,
    transparent 70%
  );
}

@media (pointer: fine) {
  body.has-glow .glow-cursor {
    display: block;
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 0 2rem;
  }
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 153, 255, 0.4));
}

.brand-link__text {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 153, 255, 0.3);
}

.logo-mark--xl {
  width: 7rem;
  height: 7rem;
  font-size: 1.75rem;
  margin: 0 auto;
  animation: floaty 4s ease-in-out infinite;
}

.logo-mark--hero {
  width: 8rem;
  height: 8rem;
  font-size: 2rem;
}

@media (min-width: 768px) {
  .logo-mark--hero {
    width: 9rem;
    height: 9rem;
  }
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--color-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.header-cta {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
  }
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--color-text);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--color-bg);
  padding: 1rem;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
}

.nav-mobile a:not(.btn) {
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.nav-mobile a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn--lg {
  min-height: 3rem;
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 153, 255, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.1);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.25);
}

/* Sections */
.section {
  position: relative;
  scroll-margin-top: 6rem;
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 2rem;
  }
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section__desc {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section__header {
  margin-bottom: 3rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6rem 1rem 4rem;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-bg);
}

.hero__bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.55), rgba(9, 9, 11, 0.85));
  backdrop-filter: blur(2px);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(0, 153, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.12), transparent 50%);
}

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 153, 255, 0.45));
  animation: floaty 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero__logo {
    width: 9rem;
    height: 9rem;
  }
}

.hero__title {
  margin: 2rem 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__text {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Stats */
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  display: block;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow 0.25s;
}

.stat-card:hover {
  box-shadow: 0 0 28px rgba(0, 153, 255, 0.28);
}

.stat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.stat-card__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-secondary);
}

.stat-card__source {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.stat-card__value {
  margin: 1.5rem 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
}

.stat-card__label {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.skeleton {
  height: 10rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: linear-gradient(
    90deg,
    var(--color-surface),
    color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)),
    var(--color-surface)
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Discord / About */
.split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.discord-mark,
.profile-mark {
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  box-shadow: 0 0 24px rgba(0, 153, 255, 0.2);
  flex-shrink: 0;
}

.profile-mark {
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-img,
.discord-img {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 24px rgba(0, 153, 255, 0.25);
  flex-shrink: 0;
}

.discord-img {
  object-fit: contain;
  border-radius: 1rem;
  background: var(--color-surface);
}

/* Hardware */
.hardware-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hardware-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hardware-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hardware-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow 0.25s;
}

.hardware-card:hover {
  box-shadow: 0 0 24px rgba(0, 153, 255, 0.22);
}

.hardware-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.12), #121212);
  display: grid;
  place-items: center;
  position: relative;
}

.hardware-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.hardware-card__placeholder {
  width: 7rem;
  height: 4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.3);
}

.hardware-card__body {
  padding: 1rem;
}

.hardware-card__brand {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hardware-card__name {
  margin: 0.25rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
}

.pc-panel {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px dashed var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
}

.pc-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
}

.pc-panel p {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.pc-panel dl {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .pc-panel dl {
    grid-template-columns: 1fr 1fr;
  }
}

.pc-panel div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.pc-panel dt {
  color: var(--color-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  background: var(--color-surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__inner {
  position: relative;
  width: min(100%, 64rem);
}

.lightbox__img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
  border-radius: 0.75rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.lightbox__close {
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
}

.lightbox__prev {
  left: 0.5rem;
}

.lightbox__next {
  right: 0.5rem;
}

/* Schedule */
.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-surface);
  overflow: hidden;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.schedule-list li:first-child {
  border-top: 0;
}

.schedule-list .time {
  font-family: "Orbitron", sans-serif;
  color: var(--color-secondary);
}

.schedule-list .note {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: "Outfit", sans-serif;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--color-secondary);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 3rem 2rem;
  }
}

.site-footer__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand,
.site-footer__heading {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer__links a {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.site-footer__links a:hover {
  color: var(--color-secondary);
}

.site-footer__copy {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* Legal pages */
.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 7rem 1rem 4rem;
}

.legal h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__logo,
  .logo-mark--xl {
    animation: none;
  }
}
