/* ==========================================================================
   AVANT Ventures — Landingpage
   Handwritten CSS · Design tokens first, no framework
   ========================================================================== */

:root {
  --bg: #0A0A0B;                       /* Obsidian */
  --surface: #121214;
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, .62);
  --accent: #10B981;                   /* Smaragd */
  --accent-glow: #34D399;
  --accent-dark: #05130E;
  --border-glass: rgba(255, 255, 255, .08);
  --radius: 20px;

  --fs-display: clamp(3rem, 8vw, 7rem);
  --fs-h2: clamp(2rem, 4vw, 3.5rem);
  --fs-body: clamp(1rem, 1.4vw, 1.15rem);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-section: clamp(96px, 12vw, 176px);
  --container: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
em { font-style: italic; }

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

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 880px; }

.glass {
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

/* Halbes Padding je Seite → zwischen zwei Sektionen ergibt sich überall
   exakt EIN --space-section Abstand. Zusätzlich füllt jede Sektion mindestens
   einen Viewport (Inhalt zentriert) → beim Scrollen immer nur eine Sektion
   sichtbar, ohne Scroll-Jacking. */
.section {
  padding-block: calc(var(--space-section) / 2);
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.section-label .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: .01em;
  margin-bottom: 40px;
  max-width: 20ch;
}
.section-title em, .statement em, .cta__headline em, .hero__headline em {
  color: var(--accent-glow);
  font-style: italic;
}

.section-intro {
  max-width: 56ch;
  color: var(--text-dim);
  margin-bottom: 72px;
}

/* ---------- Reveal (JS toggles .is-visible; motion-safe & JS-only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
    transition:
      opacity .9s cubic-bezier(.22, 1, .36, 1),
      transform .9s cubic-bezier(.22, 1, .36, 1),
      filter .9s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform, filter;
  }
  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, background-color .35s;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-dark);
  padding: 14px 32px;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0);
}
.btn--primary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, .35);
}
.btn--lg { padding: 18px 44px; font-size: 1.05rem; }
.btn--nav { padding: 10px 22px; font-size: .9rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding .4s, background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-glass);
}
.nav__inner {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .06em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nav__logo-sub {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .32em;
  color: var(--text-dim);
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: .9rem;
  color: var(--text-dim);
}
.nav__links a { transition: color .3s; }
.nav__links a:hover { color: var(--text); }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -16px;                       /* room for ±8px parallax */
  z-index: 0;
}
.hero__video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Stock-Clip (violett) → Smaragd-Look; wird beim Higgsfield-Swap entfernt */
  filter: hue-rotate(255deg) saturate(.75) brightness(.62);
}
.hero__poster {
  background-size: cover;
  background-position: center;
  filter: none;
  display: none;
}
.hero--no-video .hero__video { display: none; }
.hero--no-video .hero__poster { display: block; }

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 75%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(10, 10, 11, .55), transparent 30%, transparent 62%, var(--bg) 98%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 96px;
}
.eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 32px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: .005em;
  margin-bottom: 48px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
}
.hero__scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-hint span { animation: scrollHint 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: .2; }
}

/* ---------- 2 · Statement ---------- */

.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 48px;
}
.statement__body {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.statement__body span { display: block; }  /* je Satz eine Zeile; mobil bricht der Satz natürlich um */

/* ---------- 3 · Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.bento__card {
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .5s;
}
.bento__card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, .28);
}
.bento__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
  z-index: 0;
}
.bento__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, .85), rgba(10, 10, 11, .3));
}
.bento__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; height: 100%; }

.bento__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, .12);
  color: var(--accent-glow);
  margin-bottom: 8px;
}
.bento__icon svg { width: 22px; height: 22px; }

.bento__card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
}
.bento__card p { color: var(--text-dim); font-size: .98rem; }
@media (min-width: 901px) {
  .bento__card p span { display: block; }  /* je Satz eine Zeile (nur Desktop) */
}

/* ---------- 4 · Steps ---------- */
.steps {
  position: relative;
  margin-top: 32px;
  padding-left: 0;
}
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-glass);
}
.steps::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-glow));
  transform-origin: top;
  transform: scaleY(var(--steps-progress, 0));
}
.step {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  position: relative;
}
.step__num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--surface);
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--accent-glow);
  position: relative;
  z-index: 1;
}
.step__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.step__body p { color: var(--text-dim); max-width: 56ch; }
@media (min-width: 901px) {
  .step__body p span { display: block; }  /* je Satz eine Zeile (nur Desktop) */
}

/* ---------- 5 · Über uns ---------- */
.section--proof { border-block: 1px solid var(--border-glass); }
.about__body {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

/* Gründer-Karten: 3D-Flip (Hover auf Desktop, Tap/Enter auf Touch & Tastatur) */
.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  perspective: 1400px;
}
.founder {
  position: relative;
  min-height: 460px;
  cursor: pointer;
}
.founder:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.founder__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .founder:hover .founder__inner { transform: rotateY(180deg); }
}
.founder.is-flipped .founder__inner { transform: rotateY(180deg); }

.founder__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 28px;
}
.founder__back { transform: rotateY(180deg); }

.founder__avatar {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background:
    radial-gradient(circle at 35% 30%, rgba(52, 211, 153, .35), rgba(16, 185, 129, .1) 55%, rgba(255, 255, 255, .04));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.founder__avatar span {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-glow);
}
.founder__face h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
}
.founder__role { color: var(--text-dim); font-size: .92rem; max-width: 36ch; }
.founder__hint {
  margin-top: auto;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-glow);
  opacity: .8;
}
.founder__back p { color: var(--text-dim); font-size: .95rem; }

/* ---------- 6 · Final CTA ---------- */
.section--cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(16, 185, 129, .12), transparent 70%);
}
.cta__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.cta__sub { color: var(--text-dim); margin-bottom: 48px; }

/* ---------- Legal (Impressum / Datenschutz) ---------- */
.section--legal { align-content: start; padding-top: calc(var(--space-section) + 48px); }
.legal { max-width: 60ch; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 40px 0 16px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-dim); margin-bottom: 20px; }
.legal ul { list-style: disc; padding-left: 24px; color: var(--text-dim); margin-bottom: 20px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--accent-glow); }
.legal a { text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.legal a:hover { color: var(--accent-glow); }

/* ---------- 7 · Footer ---------- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .06em;
}
.footer__brand span {
  font-family: var(--font-body);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .32em;
  color: var(--text-dim);
  margin-left: 8px;
}
.footer__legal { font-size: .85rem; color: var(--text-dim); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.footer__legal a:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .founder { min-height: 420px; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__inner { width: calc(100% - 32px); }
  .nav__logo { font-size: 1.2rem; }
  .nav__logo-sub { display: none; }
  .btn--nav { padding: 9px 16px; font-size: .8rem; }
  .step { gap: 24px; }
  .steps::before, .steps::after { left: 21px; }
  .step__num { width: 44px; height: 44px; font-size: .75rem; }
  .hero__scroll-hint { display: none; }
}

/* Kleine Screens / Datensparen: Poster statt Hero-Video (JS entfernt das Video zusätzlich) */
@media (max-width: 480px) {
  .hero__video { display: none; }
  .hero__poster { display: block; }
}

/* ==========================================================================
   Reduced motion — Inhalte sofort sichtbar, keine Animationen
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .steps::after { transform: scaleY(1); }
}
