/* ═══════════════════════════════════════════════════════
   AXIONMADE — Dark / Forge / Wow
   ═══════════════════════════════════════════════════════ */

:root {
  --black: #04050a;
  --black-soft: #0a0c14;
  --black-elev: #10131e;

  --steel: #4d9aff;
  --steel-bright: #88b8ff;
  --steel-deep: #2b7ce5;
  --steel-glow: rgba(77, 154, 255, 0.45);
  --steel-glow-soft: rgba(77, 154, 255, 0.18);
  --steel-glow-faint: rgba(77, 154, 255, 0.08);

  --accent: #6ec1ff;
  --accent-glow: rgba(110, 193, 255, 0.35);

  --text: #eef2f8;
  --text-soft: #9aa3b3;
  --text-mute: #5a6275;

  --border: rgba(180, 200, 255, 0.06);
  --border-strong: rgba(180, 200, 255, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

/* ── Animierter Hintergrund mit Glow-Spots ─────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  background:
    radial-gradient(ellipse at 50% 50%, var(--steel-glow-soft) 0%, transparent 50%),
    radial-gradient(ellipse at 18% 28%, var(--steel-glow-faint) 0%, transparent 42%),
    radial-gradient(ellipse at 82% 72%, var(--steel-glow-faint) 0%, transparent 45%);
  z-index: -2;
  animation: bgFloat 32s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, transparent 0%, rgba(0,0,0,0.4) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px);
  z-index: -1;
  pointer-events: none;
}

@keyframes bgFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 4%) scale(1.06); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}

/* ── Cursor-Spotlight ─────────────────────────────────── */
.cursor-spot {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--steel-glow-soft) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity 0.35s;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1000;
  transition: width 0.18s, height 0.18s, background 0.18s;
  will-change: transform;
}

.cursor-dot.hover {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
}

/* ── Particles Canvas ─────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 36px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 100;
  background: transparent;
}

.brand-mini { display: flex; align-items: center; }
.brand-mini-img {
  height: 26px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.25s, filter 0.25s;
  filter: drop-shadow(0 0 6px var(--steel-glow-soft));
}
.brand-mini:hover .brand-mini-img {
  opacity: 1;
  filter: drop-shadow(0 0 12px var(--steel-glow));
}

.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: rgba(255,255,255,0.02);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(.22,.6,.36,1);
}
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--steel-bright);
  background: rgba(255, 122, 24, 0.08);
  box-shadow: 0 0 18px var(--steel-glow-soft);
}
.lang-btn.active {
  border-color: var(--steel);
  color: var(--steel);
  background: rgba(77, 154, 255, 0.08);
  box-shadow: 0 0 14px var(--steel-glow-soft);
}

/* ── Main ───────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 6vw 80px;
  position: relative;
  z-index: 2;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

/* ── Atmosphäre: Video als riesiger, weicher BG ──────── */
.atmosphere {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.6) 35%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.6) 35%, transparent 75%);
}
.atmosphere video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(40px) brightness(0.85) contrast(1.2) saturate(1.4) hue-rotate(-10deg);
  mix-blend-mode: screen;
  transform: scale(1.4);
  animation: atmoFloat 30s ease-in-out infinite alternate;
}

@keyframes atmoFloat {
  0%   { transform: scale(1.4) translate(0, 0); }
  100% { transform: scale(1.55) translate(2%, -3%); }
}

/* ── Stage ─────────────────────────────────────────────── */
.stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 9 / 16;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1600px;
}

/* ── Video — nahtlos in Hintergrund maskiert ───────────── */
.video-wrap {
  position: absolute;
  inset: 0;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(.22,.6,.36,1);
  will-change: transform;
  animation: heroIn 1.4s cubic-bezier(.22,.8,.28,1) 0.2s backwards;
  /* Kreisförmig, sehr weich — keine erkennbare Rechteckform */
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
    black 0%,
    rgba(0,0,0,0.92) 14%,
    rgba(0,0,0,0.7) 28%,
    rgba(0,0,0,0.42) 44%,
    rgba(0,0,0,0.18) 60%,
    transparent 76%);
          mask-image: radial-gradient(circle at 50% 50%,
    black 0%,
    rgba(0,0,0,0.92) 14%,
    rgba(0,0,0,0.7) 28%,
    rgba(0,0,0,0.42) 44%,
    rgba(0,0,0,0.18) 60%,
    transparent 76%);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Schwarze Pixel des Videos werden vom schwarzen BG übernommen → unsichtbar.
     Nur Logo, Funken und Glow-Effekte des Films bleiben sichtbar.
     Leichter Blur weicht Pixel-Kanten am Mask-Rand auf. */
  mix-blend-mode: screen;
  filter: contrast(1.12) brightness(1.06) blur(0.4px);
}

/* zusätzlicher pulsierender blauer Halo hinter dem Video */
.video-wrap::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, var(--steel-glow-soft) 0%, var(--steel-glow-faint) 40%, transparent 75%);
  z-index: -1;
  filter: blur(36px);
  pointer-events: none;
  animation: pulseHalo 5s ease-in-out infinite alternate;
}

@keyframes pulseHalo {
  0%   { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* ── Logo-Overlay: schwebt VOR dem Video ───────────────── */
.logo-overlay {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: logoIn 1.4s cubic-bezier(.22,.8,.28,1) 1.2s backwards;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(.22,.6,.36,1);
}

@keyframes logoIn {
  from { opacity: 0; transform: translateZ(-100px) scale(0.8); filter: blur(14px); }
  to   { opacity: 1; transform: translateZ(0) scale(1); filter: blur(0); }
}

.logo-overlay .logo {
  height: clamp(48px, 7vw, 76px);
  width: auto;
  filter:
    drop-shadow(0 4px 12px rgba(0,0,0,0.7))
    drop-shadow(0 0 22px var(--steel-glow))
    drop-shadow(0 0 50px var(--steel-glow-soft));
  animation: logoBreathe 4s ease-in-out infinite alternate;
}

@keyframes logoBreathe {
  0%   { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 18px var(--steel-glow-soft)) drop-shadow(0 0 36px var(--steel-glow-faint)); transform: scale(1); }
  100% { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)) drop-shadow(0 0 30px var(--steel-glow))     drop-shadow(0 0 70px var(--accent-glow));    transform: scale(1.04); }
}

/* ── Logo ──────────────────────────────────────────────── */
.brand {
  margin-bottom: 24px;
  animation: brandIn 1.2s cubic-bezier(.22,.8,.28,1) 0.6s backwards;
}

.logo {
  height: clamp(64px, 9vw, 90px);
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 0 18px var(--steel-glow-soft));
  animation: logoFloat 6s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0%   { transform: translateY(0); filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 0 14px var(--steel-glow-soft)); }
  100% { transform: translateY(-4px); filter: drop-shadow(0 12px 30px rgba(0,0,0,0.7)) drop-shadow(0 0 28px var(--accent-glow)); }
}

@keyframes brandIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Tagline ───────────────────────────────────────────── */
.tagline {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--steel-bright), var(--text), var(--steel));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 32px;
  margin-top: 12px;
  position: relative;
  min-height: 1.4em;
  animation: gradientShift 8s ease-in-out infinite;
}

.tagline::after {
  content: '';
  display: inline-block;
  width: 0.06em;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret 0.9s step-end infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}

.tagline.done::after {
  animation: caretFade 1.2s ease-out forwards;
}

@keyframes caret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes caretFade {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(0); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes taglineIn {
  from { opacity: 0; letter-spacing: 0.5em; }
  to   { opacity: 1; letter-spacing: 0.16em; }
}

/* ── Claim ─────────────────────────────────────────────── */
.claim {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 580px;
  animation: brandIn 1.2s cubic-bezier(.22,.8,.28,1) 1.1s backwards;
}

.claim em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(90deg, var(--steel-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

footer a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  padding: 4px 2px;
}

footer a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--steel));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(.22,.6,.36,1);
}

footer a:hover {
  color: var(--text);
}
footer a:hover::after { transform: scaleX(1); }

.sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}

.copy {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

/* ── Modals — Glassmorphism Dark ───────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 10, 0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.overlay.open { display: flex; animation: fadeIn 0.25s ease forwards; }

@keyframes fadeIn {
  from { background: rgba(7, 7, 10, 0); backdrop-filter: blur(0); }
  to   { background: rgba(7, 7, 10, 0.72); backdrop-filter: blur(14px); }
}

.modal {
  background: linear-gradient(180deg, var(--black-elev) 0%, var(--black-soft) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 48px 52px;
  max-width: 720px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 1px var(--border-strong) inset,
    0 0 80px var(--steel-glow-soft);
  animation: popIn 0.3s cubic-bezier(.22,.6,.36,1) forwards;
}

.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--steel-glow-soft), transparent 40%, transparent 60%, var(--steel-glow-soft));
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-x {
  position: absolute;
  top: 18px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-soft);
  font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  z-index: 1;
}
.modal-x:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: rotate(90deg);
}

.modal h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--steel-bright), var(--steel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel-bright);
  margin: 28px 0 10px;
}

.modal p, .modal li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-soft);
  position: relative;
}
.modal ul { padding-left: 1.4em; margin: 8px 0; }
.modal li::marker { color: var(--accent); }
.modal a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 154, 255, 0.3);
  transition: all 0.2s;
}
.modal a:hover {
  color: var(--steel-bright);
  border-bottom-color: var(--steel-bright);
}

.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--steel));
  border-radius: 4px;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  body { cursor: auto; }
  .cursor-spot, .cursor-dot { display: none; }
  header { padding: 12px 18px; }
  main { padding: 90px 18px 50px; }
  .video-wrap { max-width: 260px; }
  .modal { padding: 38px 24px; border-radius: 18px; }
  footer { padding: 18px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before { animation: none; }
  body { cursor: auto; }
  .cursor-spot, .cursor-dot, #particles { display: none; }
}
