/* ============================================================
   Creator-Strategie — Site Styles
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Bold.woff2') format('woff2');
}

:root {
  --bg-primary:    #1e2440;
  --bg-deep:       #0a1628;
  --bg-warm:       #F4F1EA;
  --bg-card:       #151c33;
  --accent:        #00d4ff;
  --accent-dim:    #00aacf;
  --accent-glow:   #33ddff;
  /* ===== Sprint 6 · Rubrik-System ===== */
  --rubrik-lab:     #00d4ff;  /* cyan   = LAB (Test-Status) */
  --rubrik-insight: #b388ff;  /* violet = INSIGHT (Marketing-Beobachtung) */
  --rubrik-stack:   #ffb547;  /* amber  = STACK (KI-Stack im Einsatz) */
  /* Legacy-Aliase (Sprint 6.0 → 6.1) — entfernen nach voller Migration */
  --rubrik-lehre:   var(--rubrik-insight);
  --rubrik-hack:    var(--rubrik-stack);
  --text-primary:  #ffffff;
  --text-secondary:#8E8E93;
  --text-muted:    #5a6080;
  --text-on-light: #0a1628;
  --text-on-light-2:#4a5168;
  --fail:          #ff4d6a;

  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --max-w: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-pad: clamp(72px, 12vh, 200px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-deep); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* ===== Eyebrow ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-line::before { display: none; }
.eyebrow.dark { color: var(--bg-deep); }
.eyebrow.dark::before { background: var(--bg-deep); }

/* ===== Headlines ===== */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.h-hero { font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -0.03em; line-height: 1.0; }
.h-section { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.025em; line-height: 1.02; }
.h-sub { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.subline { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-secondary); line-height: 1.5; max-width: 60ch; font-weight: 400; }
.subline.on-light { color: var(--text-on-light-2); }

/* ===== Mono utility ===== */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 22, 40, 0);
  backdrop-filter: blur(0px);
  transition: background 350ms ease, backdrop-filter 350ms ease, border-color 350ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(255,255,255,0.06);
}
/* Lockup component (Aperture mark + wordmark) */
.nav__logo { display: inline-flex; align-items: center; gap: 12px; }
.nav__logo-mark { display: block; width: 28px; height: 28px; flex: 0 0 auto; }
.nav__logo-mark img, .nav__logo-mark svg { width: 100%; height: 100%; display: block; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-small { font-family: var(--font-mono); font-size: 9px; color: var(--text-secondary); letter-spacing: 0.32em; text-transform: uppercase; padding-bottom: 3px;}
.nav__logo-large { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;}
@media (max-width: 480px) {
  .nav__logo-text { display: none; }
  .nav__logo-mark { width: 24px; height: 24px; }
}

/* On warm/cyan surfaces — wordmark adapts */
.footer__col .nav__logo-small { color: var(--text-muted); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity 200ms;
  position: relative;
  padding: 6px 0;
}
.nav__link:hover { opacity: 1; }
.nav__link.active { opacity: 1; }
.nav__link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav__cta {
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  transition: background 200ms, transform 200ms;
}
.nav__cta:hover { background: var(--accent-glow); transform: translateY(-1px); }

/* Mobile hamburger */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}
.nav__burger span {
  width: 16px; height: 1.5px; background: var(--text-primary);
  position: relative;
  transition: transform 250ms, opacity 200ms;
}
.nav__burger span::before, .nav__burger span::after {
  content: ''; position: absolute; left: 0;
  width: 16px; height: 1.5px; background: var(--text-primary);
  transition: transform 250ms, top 200ms;
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

.nav__mobile {
  position: fixed; left: 0; right: 0; top: 0;
  background: rgba(10,22,40,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 84px var(--gutter) 32px;
  transform: translateY(-100%);
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
  z-index: 99;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav.is-open ~ .nav__mobile { transform: translateY(0); }
.nav__mobile a {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__mobile a.cta {
  margin-top: 18px;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 16px 22px;
  border-radius: 100px;
  text-align: center;
  border: 0;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (min-width: 821px) {
  .nav__mobile { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 200ms, background 200ms, color 200ms;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent); color: var(--bg-deep);
}
.btn--primary:hover { background: var(--accent-glow); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.18);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--invert {
  background: var(--bg-deep); color: var(--accent);
}
.btn--invert:hover { background: #000; }

.link-cyan {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  padding-bottom: 3px;
}
.link-cyan::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform-origin: left center;
  transition: transform 250ms cubic-bezier(.2,.7,.2,1);
}
.link-cyan:hover::after { transform: scaleX(1.1); }
.link-cyan svg { transition: transform 250ms; }
.link-cyan:hover svg { transform: translateX(4px); }

/* ===== Email form (inline) ===== */
.email-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  max-width: 520px;
  transition: border-color 250ms, background 250ms;
}
.email-form:focus-within {
  border-color: var(--accent);
  background: rgba(0,212,255,0.04);
}
.email-form input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 12px 0;
  min-width: 0;
}
.email-form input::placeholder { color: var(--text-muted); }
.email-form button {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  transition: background 200ms, transform 200ms;
  white-space: nowrap;
}
.email-form button:hover { background: var(--accent-glow); }

.email-form.on-light {
  background: rgba(10,22,40,0.04);
  border-color: rgba(10,22,40,0.18);
}
.email-form.on-light:focus-within {
  border-color: var(--bg-deep);
  background: rgba(10,22,40,0.06);
}
.email-form.on-light input { color: var(--text-on-light); }
.email-form.on-light input::placeholder { color: var(--text-on-light-2); opacity: 0.5; }
.email-form.on-light button { background: var(--bg-deep); color: var(--accent); }
.email-form.on-light button:hover { background: #000; }

.email-form.on-cyan { background: rgba(10,22,40,0.06); border-color: rgba(10,22,40,0.18); }
.email-form.on-cyan:focus-within { border-color: var(--bg-deep); background: rgba(10,22,40,0.08); }
.email-form.on-cyan input { color: var(--bg-deep); }
.email-form.on-cyan input::placeholder { color: rgba(10,22,40,0.5); }
.email-form.on-cyan button { background: var(--bg-deep); color: var(--accent); }

.microcopy { font-size: 12px; color: var(--text-secondary); margin-top: 14px; max-width: 420px; }
.microcopy.on-light { color: var(--text-on-light-2); }
.microcopy.on-cyan { color: rgba(10,22,40,0.7); }

/* ===== Sticky bottom CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 90;
  display: flex; align-items: center; gap: 16px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 10px 10px 22px;
  border-radius: 100px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
  max-width: calc(100vw - 32px);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta__text { font-size: 13px; color: var(--text-primary); }
.sticky-cta__text strong { color: var(--accent); font-weight: 500; font-family: var(--font-mono); }
.sticky-cta__btn {
  background: var(--accent); color: var(--bg-deep);
  padding: 10px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.sticky-cta__btn:hover { background: var(--accent-glow); }
@media (max-width: 600px) {
  .sticky-cta__text { display: none; }
  .sticky-cta { padding: 8px 8px 8px 8px; }
}

/* ===== Cookie banner (brand-level) ===== */
.cookie {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  max-width: 380px;
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(140%);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1) 600ms;
}
.cookie.show { transform: none; }
.cookie__title { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.cookie__body { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.cookie__row { display: flex; gap: 8px; }
.cookie__btn { padding: 8px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.cookie__btn--accept { background: var(--accent); color: var(--bg-deep); }
.cookie__btn--decline { background: transparent; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.18); }
@media (max-width: 600px) { .cookie { left: 12px; right: 12px; max-width: none; } }
