/* ==========================================================================
   Startseite — dunkle Bühne, WebGL-Band, editoriale Typo, Scroll-Reveals.
   Eigenständig (lädt app.css bewusst NICHT), teilt nur die Marken-Fonts.
   ========================================================================== */

:root {
  --ink:   #f5f4ee;
  --muted: #9a9892;
  --bg:    #0b0b09;
  --line:  rgba(245, 244, 238, 0.12);
  --brand: #ff1c20;
  --brand-strong: #cc1418;
  --orange: #f18700;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --ease:  cubic-bezier(0.3, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body.landing {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  letter-spacing: -0.004em; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(255, 28, 32, 0.35); color: #fff; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Kopf ---------- */
.l-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(rgba(11, 11, 9, 0.75), transparent);
  transition: background 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}
.l-nav.scrolled {
  background: rgba(11, 11, 9, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
}
.l-brand img { height: 28px; display: block; }

.l-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.l-btn:active { transform: translateY(1px); }
.l-btn-primary {
  background: var(--brand-strong); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 28, 32, 0.55);
}
.l-btn-primary:hover { background: var(--brand); box-shadow: 0 14px 36px -10px rgba(255, 28, 32, 0.7); }
.l-btn-ghost { border-color: var(--line); color: var(--ink); }
.l-btn-ghost:hover { border-color: rgba(245, 244, 238, 0.4); background: rgba(245, 244, 238, 0.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 96px 20px 80px;
}
#hero-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 52% at 50% 52%, rgba(11, 11, 9, 0.52), transparent 72%),
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(255, 28, 32, 0.08), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 110%, rgba(11, 11, 9, 0.9), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #c9c7bf; margin: 0 0 26px;
  text-shadow: 0 1px 14px rgba(11, 11, 9, 0.9);
  animation: rise 0.8s var(--ease) 0.1s both;
}
.hero-title {
  font-family: var(--serif); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(52px, 9.5vw, 118px); line-height: 1.02;
  letter-spacing: -0.03em; margin: 0 0 30px; color: var(--ink);
  text-shadow: 0 2px 30px rgba(11, 11, 9, 0.75);
}
.hero-title > span { display: block; animation: rise 0.9s var(--ease) both; }
.hero-title > span:nth-child(1) { animation-delay: 0.22s; }
.hero-title > span:nth-child(2) { animation-delay: 0.36s; }
.hero-title > span:nth-child(3) { animation-delay: 0.5s; }
.hero-accent em {
  font-style: italic;
  background: linear-gradient(100deg, var(--brand) 10%, var(--orange) 55%, #ffd9a8 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 560px; margin: 0 auto 38px; color: #d4d2ca; font-size: 18px;
  text-shadow: 0 1px 16px rgba(11, 11, 9, 0.9);
  animation: rise 0.9s var(--ease) 0.64s both;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-inner .hero-cta { animation: rise 0.9s var(--ease) 0.78s both; }

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

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(245, 244, 238, 0.35); border-radius: 999px;
  animation: rise 1s var(--ease) 1.1s both;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--brand);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sektionen ---------- */
.l-section { max-width: 1080px; margin: 0 auto; padding: 110px 24px 30px; }
.l-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 14px;
}
.l-h2 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 90;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 54px;
}

/* Scroll-Reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; max-width: 460px; } }
.feature h3 { font-family: var(--serif); font-weight: 480; font-size: 21px; margin: 22px 0 8px; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

.f-visual {
  aspect-ratio: 4 / 3; border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(245, 244, 238, 0.06), transparent 60%),
    #14130f;
  display: flex; align-items: center; justify-content: center;
  perspective: 700px; overflow: hidden;
}
.f-tilt > * { transition: transform 0.25s var(--ease); will-change: transform; }

/* Mini-Mockup: Seite mit Pins + Skizze */
.mini-page {
  position: relative; width: 62%; aspect-ratio: 4 / 5; background: #fdfcf8;
  border-radius: 6px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
  padding: 12% 10%;
}
.mp-bar { display: block; height: 9%; border-radius: 4px; background: #eae8e0; margin-bottom: 9%; }
.mp-bar.short { width: 62%; }
.mp-sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-sketch path { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.mp-pin {
  position: absolute; width: 22px; height: 22px; margin: -22px 0 0 -3px;
  background: var(--brand); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500;
  border-radius: 50% 50% 50% 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Mini-Mockup: Freigabe */
.mini-approve {
  width: 74%; background: #fdfcf8; border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; gap: 8px;
}
.ma-badge {
  align-self: flex-start; background: #e5f4ec; color: #12563a;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 999px;
}
.ma-line { color: #3a3a34; font-size: 13px; font-weight: 500; }
.ma-hash { color: #a09e96; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; }

/* Mini-Mockup: Versionsvergleich */
.mini-compare { display: flex; gap: 10px; width: 72%; }
.mc-page {
  flex: 1; aspect-ratio: 4 / 5; background: #fdfcf8; border-radius: 6px; position: relative;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7); opacity: 0.65;
}
.mc-page.is-new { opacity: 1; outline: 2px solid var(--brand); outline-offset: 3px; }
.mc-tag {
  position: absolute; left: 10px; top: 10px; font-family: var(--mono);
  font-size: 11px; color: #6d6c63;
}
.mc-page.is-new .mc-tag { color: var(--brand-strong); font-weight: 700; }

/* ---------- Fakten ---------- */
.l-facts { padding-top: 70px; }
.facts {
  list-style: none; margin: 0; padding: 34px 10px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--serif); font-weight: 480; font-size: 24px; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 13.5px; }

/* ---------- Abschluss & Fuß ---------- */
.l-outro { text-align: center; padding-bottom: 90px; }
.l-outro .l-h2 { margin-bottom: 34px; }
.l-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 26px 24px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-family: var(--mono);
}
.l-footer a { color: var(--muted); text-decoration: none; }
.l-footer a:hover { color: var(--ink); }
.l-footer-credit {
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.15s var(--ease);
}
.l-footer-credit:hover { opacity: 0.82; }
.l-footer-credit span { font-size: 12px; }
.l-footer-logo { height: 15px; width: auto; display: block; opacity: 0.92; }

@media (max-width: 560px) {
  .l-footer { justify-content: center; text-align: center; padding-bottom: 40px; }
}
