/* ============================================================
   Hero V5 — Cinematic Scroll-Reveal (PERFECTION PASS)
   Sticky 400vh-Runway, kein margin-top, kein overflow auf Vorfahren.
   Fonts brand-treu: Outfit (Display), Inter (Sans), JetBrains Mono (Mono).
   ============================================================ */
:root {
  --bg-obsidian: #04050A;
  --ink-primary: #F0EEE6;
  --ink-muted: rgba(240, 238, 230, 0.62);
  --ink-faint: rgba(240, 238, 230, 0.32);
  --rule: rgba(240, 238, 230, 0.08);
  --rule-strong: rgba(240, 238, 230, 0.18);
  --cyan: #5BE9DC;
  --indigo: #5B8FF9;
  --violet: #8B5CF6;
  --magenta: #FF3D81;
  --amber: #FFB155;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --grad-nav-scrolled: linear-gradient(to bottom, rgba(4,5,10,0.92), rgba(4,5,10,0.6));
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── FIX 1 · Nav erscheint erst nach dem Hero-Reveal ──────────
   Nur Landing (diese Datei lädt nur hier). header.gq-header (0,1,1)
   schlägt globales header.css. Während der Hero-Choreographie unsichtbar,
   fadet bei p>0.82 von oben rein, wird gegen Ende solide. */
header.gq-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(4,5,10,0.70), rgba(4,5,10,0.0));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: opacity 0.6s var(--ease-apple),
              transform 0.6s var(--ease-apple),
              background 0.4s var(--ease-apple),
              border-color 0.4s var(--ease-apple);
}
header.gq-header.nav-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
header.gq-header.is-scrolled {
  background: var(--grad-nav-scrolled);
  border-bottom: 1px solid var(--rule);
}

.hero-cinematic {
  position: relative;
  height: 400vh;                 /* Runway inkl. Hold-Phase */
  width: 100%;
  background: var(--bg-obsidian);
  margin: 0;
  padding: 0;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-obsidian);
  transition: opacity 0.3s var(--ease-apple);   /* FIX 8 · weicher Übergang */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.08) saturate(1.05);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(4,5,10,0.5) 100%),
    linear-gradient(to bottom, rgba(4,5,10,0.4) 0%, transparent 20%, transparent 70%, rgba(4,5,10,0.6) 100%);
}

.logo-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 3;
  pointer-events: none;
  /* CRITICAL: perspective spannt den 3D-Raum für die Logo-Fly-By auf */
  perspective: 1200px;
  perspective-origin: center center;
  transform-style: preserve-3d;
}

.logo-bubble {
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 64px;
  margin: -32px;
  object-fit: contain;
  /* Neon-Glow im Brand-Stil (violett + magenta + cyan-Hauch), sanft pulsierend.
     Während des Scrollens überschreibt hero_cinematic.js filter/opacity/transform
     pro Frame (Tiefen-Glow). Diese Werte sind der Ruhe-/Reduced-Motion-Zustand. */
  filter:
    drop-shadow(0 0 14px rgba(168, 85, 247, 0.65))
    drop-shadow(0 0 30px rgba(236, 72, 153, 0.45))
    drop-shadow(0 0 48px rgba(91, 233, 220, 0.18));
  animation: bubble-neon 4.5s ease-in-out infinite;
  will-change: transform, opacity, filter;
  pointer-events: none;
  /* jedes Logo lebt in seiner eigenen 3D-Ebene */
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.logo-bubble[data-i="1"] { animation-delay: -0.9s; }
.logo-bubble[data-i="2"] { animation-delay: -1.8s; }
.logo-bubble[data-i="3"] { animation-delay: -2.7s; }
.logo-bubble[data-i="4"] { animation-delay: -3.6s; }

@keyframes bubble-neon {
  0%, 100% {
    filter:
      drop-shadow(0 0 12px rgba(168, 85, 247, 0.55))
      drop-shadow(0 0 24px rgba(236, 72, 153, 0.35))
      drop-shadow(0 0 44px rgba(91, 233, 220, 0.14));
  }
  50% {
    filter:
      drop-shadow(0 0 20px rgba(168, 85, 247, 0.85))
      drop-shadow(0 0 40px rgba(236, 72, 153, 0.55))
      drop-shadow(0 0 64px rgba(91, 233, 220, 0.26));
  }
}

.info-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  font: 500 12px var(--font-sans);
  color: var(--ink-primary);
  background: rgba(12, 18, 32, 0.55);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  will-change: transform, opacity;
}
.info-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 12px var(--dot-color);
}
.info-tag--tl { top: 96px; left: 32px; }
.info-tag--tr { top: 96px; right: 32px; }
.info-tag--bl { bottom: 96px; left: 32px; }
.info-tag--br { bottom: 96px; right: 32px; }

/* ── FIX 4 · weiche radiale Glow statt Block-Backdrop ── */
.hero-content-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  max-width: 1100px;
  height: 580px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  /* Dunkles Overlay hinter der ganzen Content-Zone (inkl. Headline) für
     klaren Kontrast der hellen Brand-Gradient-Schrift. */
  background:
    radial-gradient(ellipse 62% 54% at center,
      rgba(4, 5, 10, 0.82) 0%,
      rgba(4, 5, 10, 0.64) 30%,
      rgba(4, 5, 10, 0.32) 60%,
      transparent 85%);
  filter: blur(14px);
  will-change: opacity;
}

.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateY(40px);
  z-index: 5;
  width: min(92%, 820px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-content.is-revealed { pointer-events: auto; }

/* ── Reveal-Stagger (CSS transition-delay, Apple-Choreographie) ── */
.hero-tag,
.hero-headline,
.hero-sub,
.hero-cta-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-apple),
              transform 0.7s var(--ease-apple);
}
.hero-content.is-revealed .hero-tag      { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.hero-content.is-revealed .hero-headline { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.hero-content.is-revealed .hero-sub      { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
.hero-content.is-revealed .hero-cta-row  { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }

/* ── FIX 5 · GEO-Score-Pille gestochen scharf ── */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 100px;
  background: rgba(10, 13, 24, 0.78);
  border: 1px solid rgba(240, 238, 230, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  margin-bottom: 32px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-tag-flag {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

/* ── FIX 2 · Headline strahlendes Pure White, scharf, kein Gradient ── */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin: 0 0 24px;
  text-shadow: 0 2px 16px rgba(4, 5, 10, 0.65);
  -webkit-font-smoothing: antialiased;
}
/* Letter-Spacing-Atmung — läuft genau einmal (revealed-once, JS-gesetzt) */
.hero-content.revealed-once .hero-headline {
  animation: letter-breath 1.2s var(--ease-apple) 0.1s both;
}
@keyframes letter-breath {
  0%   { letter-spacing: -0.06em; }
  100% { letter-spacing: -0.035em; }
}

/* ── FIX 3 · animierter Aurora-Gradient nur auf "ChatGPT & Co" ── */
.holo-text {
  position: relative;
  display: inline-block;
  isolation: isolate;
  z-index: 10;
  /* Single-Element-Support: bei Nutzung OHNE innere Layer-Spans (z.B.
     Section-Title-Highlights) zeigt der Wrapper selbst den Brand-Gradient
     — identisch zur Hero-„ChatGPT & Co"-Palette. Im Hero (mit __base/
     __color/__shimmer) hat der Wrapper keinen direkten Text → kein Effekt. */
  background: linear-gradient(118deg,
    #8B5CF6 0%, #A855F7 22%, #C77AE0 44%, #FF3D81 66%, #D14C9E 84%, #8B5CF6 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-flow 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  /* Knappe dunkle Kante (gestochen scharf vor dem Video) + dezenter
     farbiger Glow. KEIN starker Blur-Bloom → Kanten bleiben scharf. */
  filter:
    saturate(1.25)
    drop-shadow(0 1px 1px rgba(4, 5, 10, 0.6))
    drop-shadow(0 0 3px rgba(4, 5, 10, 0.5))
    drop-shadow(0 0 12px rgba(168, 85, 247, 0.55))
    drop-shadow(0 0 26px rgba(236, 72, 153, 0.38));
}

/* EINZIGE Ebene, ganz vorne: gesättigter Holo-Gradient wie der Button. */
.holo-text__base {
  position: relative;
  z-index: 1;
  /* Identische Palette wie .gq-btn--ak (Violett → Magenta, holografisch) */
  background: linear-gradient(118deg,
    #8B5CF6 0%,
    #A855F7 22%,
    #C77AE0 44%,
    #FF3D81 66%,
    #D14C9E 84%,
    #8B5CF6 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-flow 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: background-position;
}

/* Zusatz-Layer verworfen (Screen-Blend wusch aus / Shimmer überlagerte dunkel). */
.holo-text__color,
.holo-text__shimmer { display: none; }

@keyframes holo-flow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes holo-shimmer {
  0%        { background-position: -50% 50%; }
  60%, 100% { background-position: 150% 50%; }
}

/* ── FIX 4 · Sub-Text Kontrast ── */
.hero-sub {
  position: relative;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: #FFFFFF;
  max-width: 580px;
  margin: 0 auto 36px;
  z-index: 6;
  text-shadow:
    0 0 12px rgba(4, 5, 10, 0.95),
    0 0 32px rgba(4, 5, 10, 0.75),
    0 2px 16px rgba(4, 5, 10, 0.85),
    0 0 4px rgba(4, 5, 10, 1);
  -webkit-font-smoothing: antialiased;
}
.hero-sub::before {
  content: '';
  position: absolute;
  inset: -24px -60px;
  background: radial-gradient(ellipse at center,
    rgba(4, 5, 10, 0.78) 0%,
    rgba(4, 5, 10, 0.55) 40%,
    rgba(4, 5, 10, 0.25) 70%,
    transparent 90%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease-apple);
  transition-delay: 0.22s;
}
.hero-content.is-revealed .hero-sub::before { opacity: 1; }

.hero-sub-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(91, 233, 220, 0.22);
  border: 1px solid rgba(91, 233, 220, 0.5);
  color: #FFFFFF;
  font-weight: 600;
  text-shadow: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FIX 2 · Holographic Shine für --ak: nach buttons.css verschoben
   (site-weit verfügbar, inkl. Header-CTA auf allen Seiten). */

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  will-change: opacity;
}
.scroll-hint-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, transparent, var(--ink-faint), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* === FIX 2 · Portrait-Poster bis Video bereit (sauberes LCP) === */
@media (max-width: 880px) and (orientation: portrait) {
  .hero-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;                 /* über dem Video-Landscape-Poster */
    background: url('/static/video/hero/hero_portrait_poster.jpg') center/cover no-repeat;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
  }
  .hero-stage:has(.hero-video.is-loaded)::before { opacity: 0; }
}

/* === MOBILE (Portrait + Landscape unter 880px) === */
@media (max-width: 880px) {
  .hero-cinematic { height: 320vh; }

  /* Alle 5 Bubbles bleiben sichtbar (ChatGPT/Claude/Perplexity/Gemini/Grok) */

  .info-tag--tl,
  .info-tag--br { display: none; }

  .info-tag {
    font-size: 10.5px;
    padding: 6px 12px 6px 10px;
  }
  .info-tag--tr { top: 80px; right: 16px; }
  .info-tag--bl { bottom: 80px; left: 16px; }

  .hero-content {
    width: 92%;
    padding: 0 8px;
  }

  .hero-tag {
    font-size: 10px;
    padding: 6px 14px 6px 6px;
    margin-bottom: 20px;
  }

  .hero-headline {
    font-size: clamp(34px, 9vw, 56px);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-cta-row .gq-btn {
    width: 100%;
    justify-content: center;
  }

  /* FIX 2 · Buttons kompakter auf Mobile */
  .gq-btn,
  .gq-btn--lg {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 12px;
    gap: 8px;
  }
  .gq-btn__arrow,
  .gq-btn__play {
    font-size: 14px;
  }
}

/* === MOBILE PORTRAIT SPECIFIC === */
@media (max-width: 880px) and (orientation: portrait) {
  .hero-cinematic { height: 360vh; }

  /* FIX 1 · Content tiefer (Daumen-Reach-Zone, knapp unter dem Schimmer) */
  .hero-content {
    top: 52%;
    transform: translate(-50%, -50%) translateY(40px);
  }
  .hero-content.is-revealed {
    transform: translate(-50%, -50%);
  }
  .hero-content-backdrop {
    top: 52%;
    width: 110%;
    height: 480px;
  }

  /* FIX 2 · CTA-Spalte schmaler + zentriert, CTA-Text einzeilig */
  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-row .gq-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }
  .hero-cta-row .gq-btn--ak { letter-spacing: -0.01em; }

  /* FIX 3 · Bubbles etwas kleiner (kompakter Cluster) */
  .logo-bubble {
    width: 44px;
    height: 44px;
    margin: -22px;
  }

  /* FIX 4 · Info-Tags konsistenter platziert */
  .info-tag--tr {
    top: 60px;
    right: 12px;
    font-size: 10px;
    padding: 5px 10px 5px 8px;
  }
  .info-tag--bl {
    bottom: 88px;
    left: 12px;
    font-size: 10px;
    padding: 5px 10px 5px 8px;
  }
  .info-tag-dot { width: 6px; height: 6px; }

  /* FIX 5 · Headline/Sub/Tag-Feintuning */
  .hero-headline {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 88%;
  }
  .hero-sub::before { inset: -16px -32px; }
  .hero-tag {
    font-size: 9.5px;
    padding: 5px 12px 5px 5px;
    margin-bottom: 16px;
  }
  .hero-tag-flag svg { width: 16px; height: 16px; }
}

/* === MOBILE LANDSCAPE (Phone seitlich, sehr kurz) === */
@media (max-width: 880px) and (orientation: landscape) and (max-height: 500px) {
  .hero-cinematic { height: 280vh; }
  .hero-headline { font-size: clamp(28px, 5vw, 40px); }
  .hero-sub { font-size: 12px; margin-bottom: 16px; }
  .info-tag { top: 70px !important; bottom: auto !important; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic { height: 100vh; }
  .hero-stage { position: relative; }
  .hero-content {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
  }
  .hero-tag, .hero-headline, .hero-sub, .hero-cta-row {
    opacity: 1 !important; transform: none !important;
  }
  header.gq-header { opacity: 1; transform: none; pointer-events: auto; }
  .logo-orbit, .info-tag, .scroll-hint { display: none; }
  .holo-text__base, .holo-text__shimmer, .hero-headline { animation: none; }
}

/* === Cursor Particle Trail Canvas (site-wide, fixed full-viewport) === */
.cursor-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;            /* über dem Content, unter dem Nav (z-index 100) */
  mix-blend-mode: screen;
}

/* Disable on small screens / touch devices */
@media (hover: none), (max-width: 880px) {
  .cursor-particles-canvas { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-particles-canvas { display: none; }
}
