/* ============================================
   LUMINA SPINE — Energetische Rückenheilung
   Dark text on white video background theme
   ============================================ */

:root {
  --bg-dark: #0a0a08;
  --bg-warm: #0f0d0a;
  --bg-hero: #080706;
  --gold: #9a7b2e;
  --gold-light: #c9a84c;
  --gold-deep: #6b5520;
  --gold-dim: #8a7233;
  --text-dark: #1a1714;
  --text-dark-secondary: #3d3630;
  --text-dark-body: #4a433b;
  --text-light: #f0ebe0;
  --text-dim: #a09880;
  --text-body: #c8c0b0;
  --white: #f5f2eb;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: #fff;
}

/* ---- LOADER ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.loader-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

#loader-track {
  width: 200px;
  height: 1px;
  background: rgba(201, 168, 76, 0.15);
  margin: 0 auto 1rem;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--gold-light);
  transition: width 0.2s ease;
}

#loader-percent {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  mix-blend-mode: difference;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-cta {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--white);
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--bg-dark) !important;
  opacity: 1 !important;
}

/* ---- HERO ---- */
.hero-standalone {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 5vw;
  padding-right: 50vw;
  background: var(--bg-hero);
  z-index: 10;
  overflow: hidden;
}

.hero-standalone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--text-light);
  margin: 1rem 0 1.5rem;
}

.hero-heading .word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(60px);
}

.hero-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
}

.scroll-indicator svg {
  animation: bobDown 2s ease-in-out infinite;
}

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

/* ---- CANVAS ---- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- DARK OVERLAY ---- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
}

/* ---- MARQUEE ---- */
.marquee-wrap {
  position: fixed;
  z-index: 3;
  top: 50%;
  left: -10%;
  width: 120%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.01s linear;
}

.marquee-lower {
  top: auto;
  bottom: 12%;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 14vw);
  font-weight: 300;
  color: rgba(120, 95, 40, 0.12);
  white-space: nowrap;
  line-height: 1;
  will-change: transform;
}

/* ---- SCROLL CONTAINER ---- */
#scroll-container {
  position: relative;
  height: 700vh;
  z-index: 5;
}

/* ---- SCROLL SECTIONS ---- */
.scroll-section {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.scroll-section.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.section-inner {
  max-width: 38vw;
}

/* Side alignment */
.align-left {
  padding-left: 5vw;
  padding-right: 57vw;
  justify-content: flex-start;
}

.align-right {
  padding-left: 57vw;
  padding-right: 5vw;
  justify-content: flex-end;
}

/* ---- DARK TEXT FOR WHITE VIDEO BACKGROUND (desktop) ---- */

/* Labels — dark gold on white bg */
.section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* Headings — deep dark on white bg */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

/* Body text — dark secondary on white bg */
.section-body {
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dark-body);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.section-body strong {
  color: var(--gold-deep);
  font-weight: 600;
}

/* Note / attribution */
.section-note {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dark-secondary);
  margin-top: 0.5rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* ---- STATS SECTION (uses dark overlay — light text) ---- */
.section-stats {
  justify-content: center;
  text-align: center;
}

.section-stats .stat-number,
.section-stats .stat-suffix,
.section-stats .stat-label {
  text-shadow: none;
}

.stats-grid {
  display: flex;
  gap: 6vw;
  justify-content: center;
  align-items: flex-start;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--gold-dim);
  margin-left: 0.1em;
  display: inline;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  max-width: 200px;
  line-height: 1.5;
  margin-top: 0.8rem;
}

/* ---- CTA ---- */
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 3rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--gold);
  border: none;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(154, 123, 46, 0.3);
}

.cta-button:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
}

/* ---- FOOTER ---- */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 5vw;
  background: var(--bg-dark);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-standalone {
    padding-left: 6vw;
    padding-right: 6vw;
    justify-content: flex-end;
    padding-bottom: 15vh;
  }

  .hero-heading {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  #scroll-container {
    height: 650vh;
  }

  .align-left,
  .align-right {
    padding-left: 6vw;
    padding-right: 6vw;
    justify-content: flex-start;
  }

  .section-inner {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-left: 2px solid var(--gold);
  }

  .section-heading {
    text-shadow: none;
  }

  .section-body {
    text-shadow: none;
  }

  .section-note {
    text-shadow: none;
  }

  .section-stats {
    padding: 0 6vw;
  }

  .stats-grid {
    flex-direction: column;
    gap: 2.5rem;
    background: rgba(10, 10, 8, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
  }

  .stat {
    align-items: flex-start;
    text-align: left;
  }

  .stat-label {
    max-width: 100%;
  }

  .marquee-text {
    font-size: 8vw;
  }

  .section-heading {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }
}
