/* Self-hosted fonts (Inter + JetBrains Mono) — replaces the Google Fonts CDN call.
   Keeps visitor IPs off Google's servers (DSGVO / EU-Datenresidenz) and removes a render-blocking 3rd-party request.
   Subsets: latin + latin-ext, mirroring Google's own unicode-range splits. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orcapilot hero — Xero-structure layout merged into the orcapilot palette + copy. */

:root {
  --bg: #021D2E;
  --surface: #04293E;
  --text: #FFFFFF;
  --text-muted: #9DAEB8;
  --accent: #A5D8E6;
  --accent-glow: #FC612D;
  --border: rgba(165, 216, 230, 0.10);
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ============ NAVBAR ============ */
nav {
  width: 100%;
  max-width: 1600px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 24px;
  margin-bottom: 14px;
  position: sticky;
  top: 6px;
  z-index: 900;
  background: rgba(2, 22, 33, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

section[id], #top { scroll-margin-top: 92px; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 46px; width: auto; display: block; }

.nav-menu { display: contents; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-login, .btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.12s ease;
}
.btn-login {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn-login:hover { background: rgba(255, 255, 255, 0.12); }
.btn-signup {
  background: #ffffff;
  color: var(--bg);
  border: 1px solid #ffffff;
  font-weight: 600;
}
.btn-signup:hover { opacity: 0.88; }
.btn-login:active, .btn-signup:active { transform: translateY(0.5px); }

.menu-toggle {
  display: none;
  width: 24px;
  height: 14px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO CARD ============ */
.hero-card {
  width: 100%;
  max-width: 1600px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
  background: #04161F;
  padding: 64px 40px 92px;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Signature gradient arc — recolored navy -> light-blue -> white, warm orcapilot inner glow */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -70%,
      transparent 60%,
      rgba(120, 175, 205, 0.03) 63%,
      rgba(120, 175, 205, 0.08) 65%,
      rgba(120, 175, 205, 0.16) 67%,
      rgba(124, 180, 208, 0.28) 69%,
      rgba(128, 184, 211, 0.40) 71%,
      rgba(134, 189, 215, 0.52) 73%,
      rgba(142, 196, 220, 0.64) 75%,
      rgba(150, 204, 225, 0.74) 77%,
      rgba(160, 211, 230, 0.82) 79%,
      rgba(182, 226, 240, 0.92) 85%,
      rgba(208, 238, 248, 0.88) 87%,
      rgba(230, 247, 255, 0.92) 91%,
      rgba(245, 252, 255, 0.98) 93%,
      #ffffff 95%),
    radial-gradient(circle at 50% 35%, rgba(252, 97, 45, 0.06) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% -70%, transparent 60%, black 78%);
  mask-image: radial-gradient(circle at 50% -70%, transparent 60%, black 78%);
}

/* ============ ICON PIPELINE ============ */
.icon-pipeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin-bottom: 52px;
  z-index: 1;
}

.beam-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}


.pipeline-line {
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
}
.pipeline-line.right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.15));
}

.center-wrap { position: relative; display: flex; align-items: center; justify-content: center; }

.splash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 97, 45, 0.5) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  z-index: 2;
  pointer-events: none;
}
.splash.animate { animation: splash-anim 0.8s ease-out forwards; }

@keyframes splash-anim {
  0%   { transform: scale(0.4); opacity: 0.8; }
  40%  { opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Side nodes — neumorphic */
.icon-node {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0A2230;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.4),
    -4px -4px 10px rgba(255, 255, 255, 0.03),
    inset 1px 1px 1px rgba(255, 255, 255, 0.05),
    inset 4px 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-node::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dotted #0A2230;
  pointer-events: none;
}
.icon-node:hover {
  transform: translateY(-1px);
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.5),
    -5px -5px 12px rgba(255, 255, 255, 0.04),
    inset 1px 1px 1px rgba(255, 255, 255, 0.05),
    inset 4px 4px 8px rgba(0, 0, 0, 0.4);
}
.icon-node:active {
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.05),
    inset 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.icon-node svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Center node */
.icon-node-center {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0B2738;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.5),
    -6px -6px 14px rgba(255, 255, 255, 0.04),
    inset 1px 1px 2px rgba(255, 255, 255, 0.06),
    inset 6px 6px 12px rgba(0, 0, 0, 0.5);
}
.icon-node-center .orca-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Side-light glows */
.node-light-right::before,
.node-light-left::before {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  pointer-events: none;
}
.node-light-right::before {
  background: radial-gradient(circle at right, rgba(200, 200, 200, 0.45) 0%, transparent 70%);
}
.node-light-left::before {
  background: radial-gradient(circle at left, rgba(165, 216, 230, 0.5) 0%, transparent 70%);
}
.node-light-right.active::before,
.node-light-left.active::before { opacity: 1; }

/* ============ HERO TEXT ============ */
.hero-content {
  position: relative;
  max-width: 820px;
  z-index: 1;
}
.hero-heading {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-heading strong {
  display: block;
  font-weight: 500;
  margin-top: 4px;
  background: linear-gradient(to right, #ffffff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  line-height: 1.6;
  margin: 24px auto 40px;
}
.btn-cta {
  display: inline-block;
  background: #ffffff;
  color: var(--bg);
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.btn-cta:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }

/* ============ BRANDS / SYSTEMS ============ */
.brands {
  width: 100%;
  max-width: 1600px;
  display: flex;
  gap: 64px;
  padding: 32px 24px 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.brand-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ CONTENT SECTIONS ============ */
.section { width: 100%; max-width: 1600px; position: relative; }
.section.alt { background: #042738; }
.section-inner { max-width: 1120px; margin: 0 auto; padding: clamp(60px, 9vh, 116px) 28px; text-align: left; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1.2rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent); opacity: 0.55; }

.section h2 {
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0 0 1.1rem;
  max-width: 44rem;
}
.section-lead {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 46rem;
}
.sub-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 2.2rem 0 1rem;
}

/* Flow chain */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; margin-top: 2.4rem; }
.flow-box {
  flex: 1 1 auto;
  min-width: 120px;
  border: 1px solid var(--border);
  border-top: 2px solid rgba(165, 216, 230, 0.5);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
}
.flow-box.hl { border-color: rgba(255, 255, 255, 0.28); border-top-color: #fff; background: rgba(255, 255, 255, 0.05); }
.flow-box.warn { border-color: rgba(252, 97, 45, 0.35); border-top-color: var(--accent-glow); background: rgba(252, 97, 45, 0.06); }
.flow-box .ftag { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--accent); margin-bottom: 0.4rem; }
.flow-arrow { align-self: center; color: rgba(157, 174, 184, 0.7); flex: 0 0 auto; }

/* One-row process flow: all boxes on a single line, shrinking to fit.
   Boxes get an opaque fill + z-index 2 so the flowing tokens (z 1) pass behind them. */
.flow-line { flex-wrap: nowrap; position: relative; }
.flow-line .flow-box { flex: 1 1 0; min-width: 0; font-size: 0.82rem; padding: 0.8rem 0.7rem 1.55rem; position: relative; z-index: 2; background: #07202C; overflow-wrap: anywhere; hyphens: auto; line-height: 1.2; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--border); }
.flow-line .flow-box.hl { background: #0c2937; border-top-color: rgba(255, 255, 255, 0.28); }
/* per-step agent (blue) vs human (white) split bar */
.split { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.6rem; height: 6px; border-radius: 999px; background: #ffffff; overflow: hidden; }
.split::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: var(--a, 100%); background: #5AB4E6; border-radius: 999px; }

/* Document tokens flowing through the process — above the arrows, behind the boxes */
.flow-token-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flow-token {
  position: absolute;
  top: 50%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
  background: rgba(8, 28, 42, 0.96);
  border: 1px solid rgba(165, 216, 230, 0.34);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(165, 216, 230, 0.16);
  opacity: 0;
  will-change: left, transform, opacity;
  animation: folder-flow 7s ease-in-out infinite;
}
.flow-token svg { width: 13px; height: 13px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Patrick's brief: the folder appears large with its label, then shrinks and
   travels through the process, then loops. */
@keyframes folder-flow {
  0%   { left: 10%; transform: translate(-50%, -50%) translateY(-64px) scale(1.7); opacity: 0; }
  7%   { opacity: 1; }
  27%  { left: 10%; transform: translate(-50%, -50%) translateY(-64px) scale(1.7); opacity: 1; }
  42%  { left: 10%; transform: translate(-50%, -50%) translateY(0)     scale(0.92); opacity: 1; }
  90%  { left: 92%; transform: translate(-50%, -50%) translateY(0)     scale(0.92); opacity: 1; }
  100% { left: 94%; transform: translate(-50%, -50%) translateY(0)     scale(0.86); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .flow-token { display: none; } .splash { animation: none !important; } }

@media (max-width: 768px) {
  .flow-line { flex-wrap: wrap; }
  .flow-line .flow-box { flex: 1 1 110px; font-size: 0.9rem; padding: 0.85rem 1rem 1.5rem; }
  .flow-token { display: none; }
}

.legend { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1rem 0 1.4rem; font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--text-muted); }
.legend span { display: flex; align-items: center; gap: 0.5rem; }
.legend i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; flex: none; }

.callout {
  margin-top: 1rem;
  background: rgba(2, 47, 115, 0.20);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
}
.callout strong { font-weight: 600; color: var(--text); }
.callout span { color: var(--text-muted); }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.card { border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.6rem; background: rgba(255, 255, 255, 0.02); }
.card.hl { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.045); }
.card h3 { font-weight: 600; font-size: 1.12rem; margin: 0 0 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; margin: 0; }
.card .ctag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.8rem; }
.card .cnum { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; color: var(--accent); margin-bottom: 0.5rem; }
.card .chips { margin-top: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--accent); border: 1px solid rgba(165, 216, 230, 0.22); border-radius: 0.5rem; padding: 0.4rem 0.75rem; }

.banner {
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.banner h3 { font-weight: 600; font-size: 1.15rem; margin: 0 0 0.4rem; }
.banner p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Browser mock (section 04) */
.mock { margin-top: 2.4rem; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.mock-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); }
.mock-bar .dots { display: flex; gap: 0.4rem; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 99px; background: rgba(157, 174, 184, 0.4); }
.mock-bar .url { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 0.4rem; padding: 0.25rem 0.8rem; }
.mock-body { display: flex; flex-wrap: wrap; }
.mock-board { flex: 1 1 340px; padding: 1.3rem; border-right: 1px solid var(--border); }
.mock-folder { flex: 1 1 300px; padding: 1.3rem; }
.mock-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 1rem; }
.board-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.board-cols .col-h { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.ticket { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.6rem; background: rgba(255, 255, 255, 0.02); margin-bottom: 0.5rem; }
.ticket.hl { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.ticket .tid { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--accent); }
.ticket .tname { display: block; font-size: 0.8rem; color: var(--text); }
.folder-tabs { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.74rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 0.7rem; margin-bottom: 1rem; }
.folder-tabs .on { color: var(--text); }
.folder-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; font-size: 0.85rem; }
.folder-row span:first-child { color: var(--text-muted); }
.folder-row span:last-child { color: var(--text); }
.folder-note { margin: 1.1rem 0 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.folder-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }
.folder-actions .fa-primary { background: #022F73; color: #fff; font-size: 0.8rem; border-radius: 0.45rem; padding: 0.45rem 1rem; }
.folder-actions .fa-ghost { border: 1px solid rgba(165, 216, 230, 0.22); color: var(--text-muted); font-size: 0.8rem; border-radius: 0.45rem; padding: 0.45rem 1rem; }

/* Pricing (section 08) */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.price { border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.6rem; background: rgba(255, 255, 255, 0.02); }
.price h3 { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 0.8rem; font-weight: 500; }
.price .big { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.3rem, 0.8rem + 1vw, 1.7rem); letter-spacing: -0.02em; color: var(--accent); line-height: 1.05; margin-bottom: 0.7rem; white-space: nowrap; }
.price .big-glow { color: var(--accent-glow); }
.price p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* Final CTA (section 11) */
.cta-final { text-align: center; }
.cta-final .eyebrow { justify-content: center; }
.cta-final h2, .cta-final .section-lead { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.btn-cta-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border); padding: 12px 28px; }
.btn-cta-ghost:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.contact-card { margin: 2.6rem auto 0; max-width: 360px; border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.5rem; background: rgba(255, 255, 255, 0.02); text-align: left; }
.contact-card .ctag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent); margin-bottom: 0.7rem; }
.contact-card h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 0.2rem; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0.3rem 0 0; line-height: 1.6; }
.contact-card a { color: var(--accent); }

@media (max-width: 768px) {
  .mock-board { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .icon-pipeline { gap: 0; margin-bottom: 40px; }
  .pipeline-line { width: 80px; }
}

@media (max-width: 768px) {
  nav { display: flex; justify-content: space-between; align-items: center; }
  .menu-toggle { display: block; }

  .nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 80px 24px;
    background: var(--bg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  .nav-menu.active { right: 0; }
  .nav-links { flex-direction: column; gap: 28px; }
  .nav-links a { font-size: 1.1rem; }
  .nav-actions { flex-direction: column; width: 70%; gap: 14px; }
  .btn-login, .btn-signup { width: 100%; padding: 12px 18px; font-size: 0.95rem; }

  .icon-node { width: 38px; height: 38px; }
  .icon-node svg { width: 17px; height: 17px; }
  .icon-node-center { width: 52px; height: 52px; }
  .icon-node-center .orca-mark { width: 26px; height: 26px; }
  .hero-card { padding: 60px 20px 60px; min-height: auto; }
  .brands { gap: 32px; }
}

@media (max-width: 480px) {
  .hero-card { border-radius: 16px; }
  .brands { gap: 24px; }
}

/* ============ FOOTER ============ */
.site-footer {
  width: 100%;
  max-width: 1600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 24px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}
.footer-copy { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); }

/* ============ LEGAL PAGES ============ */
.legal {
  width: 100%;
  max-width: 820px;
  padding: 40px 24px 80px;
  text-align: left;
}
.legal h1 { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 32px; }
.legal h2 { font-weight: 600; font-size: 1.15rem; margin: 36px 0 12px; color: var(--text); }
.legal h2:first-of-type { margin-top: 24px; }
.legal p { color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; max-width: 65ch; }
.legal ul { margin: 0 0 14px 1.3rem; padding: 0; list-style: disc; }
.legal li { color: var(--text-muted); line-height: 1.7; margin-bottom: 4px; }
.legal address { font-style: normal; color: rgba(255, 255, 255, 0.45); line-height: 1.7; margin-bottom: 14px; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--text); }
.legal .back-link { display: inline-block; margin-bottom: 28px; color: var(--text-muted); font-size: 0.85rem; }
.legal .back-link:hover { color: var(--text); }

/* ============================================================
   PREMIUM ELEVATION — additive only (rhythm, depth, motion, focus)
   ============================================================ */

/* Section dividers: a soft, centered fading rule instead of a flat hairline */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 56px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 216, 230, 0.18), transparent);
  pointer-events: none;
}
.section:first-of-type::before { display: none; }

/* Nav-link animated underline (layout-shift-free) */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Resting depth on bento surfaces */
.card, .price, .banner, .mock, .contact-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* Card / pricing hover — the dominant interactive surface */
.card, .price {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .price:hover {
  transform: translateY(-3px);
  border-color: rgba(165, 216, 230, 0.28);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.card.hl:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* Keyboard focus visibility (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-cta:focus-visible,
.btn-signup:focus-visible,
.btn-login:focus-visible,
.btn-cta-ghost:focus-visible { outline-offset: 4px; }

/* Scroll-reveal — only when motion is welcome. Classes are injected by app.js,
   so with JS disabled nothing is ever hidden (no-FOUC safety net). */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* Respect reduced motion for the new hover transforms */
@media (prefers-reduced-motion: reduce) {
  .card, .price { transition: border-color 0.15s ease, background 0.15s ease; }
  .card:hover, .price:hover { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.22); }
}

/* ============================================================
   STRUCTURED SECTIONS (from the team review references)
   ============================================================ */

/* §01 — extra headroom so the large "Aktenordner" folder can appear above the row */
.flow.flow-line { margin-top: 3.8rem; }

/* §02 — manual handover chain: bold station title + orange action, dashed end box */
.handoff-flow .flow-box { display: flex; flex-direction: column; gap: 0.35rem; min-width: 132px; }
.flow-box.step strong { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.flow-box .act { color: var(--accent-glow); font-size: 0.86rem; line-height: 1.35; }
.flow-box.miss { border: 1px dashed rgba(157, 174, 184, 0.45); border-top: 1px dashed rgba(157, 174, 184, 0.45); background: transparent; }
.flow-box.miss strong { color: var(--text); }
.flow-box.miss .act { color: var(--text-muted); }

/* §05 — connected process timeline */
.timeline { display: flex; gap: 1rem; margin-top: 3rem; position: relative; text-align: center; }
.timeline::before { content: ''; position: absolute; top: 8px; left: 10%; right: 10%; height: 2px; background: rgba(165, 216, 230, 0.22); }
.tl-step { flex: 1 1 0; min-width: 0; position: relative; padding-top: 2.6rem; }
.tl-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(165, 216, 230, 0.45); }
.tl-dot.human { background: #07243a; box-shadow: 0 0 0 2px var(--accent); }
.tl-step h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.6rem; }
.tl-step p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.pill { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 0.28rem 0.75rem; border-radius: 999px; margin-bottom: 0.8rem; }
.pill-ki { background: rgba(165, 216, 230, 0.16); color: var(--accent); border: 1px solid rgba(165, 216, 230, 0.3); }
.pill-human { background: transparent; color: var(--text-muted); border: 1px solid rgba(157, 174, 184, 0.45); }

/* §07 — numbered rows + outcome stat cards */
.steps-rows { margin-top: 2.6rem; border-top: 1px solid var(--border); }
.step-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem; padding: 1.8rem 0.4rem; border-bottom: 1px solid var(--border); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.step-main .ctag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem; text-transform: uppercase; }
.step-main h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.4rem; }
.step-main p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; margin: 0; max-width: 52rem; }
.step-ic { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(165, 216, 230, 0.10); border: 1px solid rgba(165, 216, 230, 0.18); flex: none; }
.step-ic svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.stat-card { display: flex; gap: 1.1rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.4rem 1.5rem; background: rgba(255, 255, 255, 0.02); }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(165, 216, 230, 0.10); border: 1px solid rgba(165, 216, 230, 0.18); }
.stat-ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-big { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.stat-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* §08 — intelligence icon on the knowledge callout */
.callout-glow { border-color: rgba(252, 97, 45, 0.28); flex-wrap: nowrap; align-items: flex-start; gap: 0.9rem; }
.callout-glow span { flex: 1; }
.callout-ic { width: 28px; height: 28px; flex: none; stroke: var(--accent-glow); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* §01 — folder icon on the "Digitaler Aktenordner" callout */
.callout-file { flex-wrap: nowrap; align-items: flex-start; gap: 0.9rem; }
.callout-file .callout-text { flex: 1; }
.callout-file .callout-ic { stroke: var(--accent); }

/* §09 — icon tiles on the control/privacy cards */
.card-ic { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(165, 216, 230, 0.10); border: 1px solid rgba(165, 216, 230, 0.18); margin-bottom: 1rem; }
.card-ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* §10 — sub-section heading (Expertennetzwerk) */
.subhead { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 2.8rem 0 0; }
.subhead + .cards { margin-top: 1rem; }

/* §09 — EU-Datenresidenz feature card + control list */
.privacy-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.4rem; margin-top: 2.6rem; }
.eu-feature { border: 1px solid var(--border); border-radius: 1rem; padding: 2.1rem 1.9rem; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.22); }
.eu-flag { width: 54px; height: auto; border-radius: 6px; display: block; margin-bottom: 1.6rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.eu-feature .ctag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.85rem; }
.eu-feature h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.9rem; }
.eu-feature p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin: 0; }
.privacy-list { display: flex; flex-direction: column; }
.pl-item { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.45rem 0.2rem; border-top: 1px solid var(--border); }
.pl-item:first-child { border-top: none; padding-top: 0.3rem; }
.pl-item .card-ic { margin-bottom: 0; flex: none; }
.pl-item h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 0.35rem; }
.pl-item p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; margin: 0; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .timeline { flex-direction: column; gap: 1.8rem; text-align: left; }
  .timeline::before { display: none; }
  .tl-step { padding-top: 0; padding-left: 1.6rem; }
  .tl-dot { top: 6px; left: 0; transform: none; }
}
@media (max-width: 768px) {
  .step-row { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.4rem 0.2rem; }
  .step-num { font-size: 2rem; }
  .step-ic { display: none; }
  .stat-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   STORYTELLING MOTION — hero narrative, chain break, Freigabe halt,
   agent log, count-up. All disclosure-driven, reduced-motion safe.
   ============================================================ */

/* --- Hero: trust line --- */
.hero-trust {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.62);
  margin: 26px 0 0;
}

/* --- Hero: orchestrated entrance (load, not scroll) --- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  .icon-pipeline { animation: fade-in 0.9s ease-out both; }
  .hero-heading  { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
  .hero-sub      { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
  .hero-content .btn-cta { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }
  .hero-trust    { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both; }
}

/* --- §01: comparison cards --- */
.cards-compare { margin-top: 2.2rem; }
.chip-check { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(90, 180, 230, 0.14); }

/* --- Scroll reveal: staggered children (animation, so hover transitions stay untouched) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in .cards > .card,
  .reveal.in .pricing > .price,
  .reveal.in .handoff-flow > .flow-box,
  .reveal.in .handoff-flow > .flow-arrow,
  .reveal.in .steps-rows > .step-row,
  .reveal.in .stat-cards > .stat-card,
  .reveal.in .privacy-list > .pl-item {
    animation: rise-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 70ms) both;
  }
  /* §02: the chain assembles station by station, then the last box flashes —
     the handover chain visibly breaks down. */
  @keyframes miss-flash {
    0%, 100% { border-color: rgba(157, 174, 184, 0.45); box-shadow: none; }
    35% { border-color: rgba(252, 97, 45, 0.8); box-shadow: 0 0 26px rgba(252, 97, 45, 0.18); }
  }
  .reveal.in .handoff-flow > .flow-box.miss {
    animation:
      rise-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 70ms + 180ms) both,
      miss-flash 1.5s ease-out calc(var(--i, 0) * 70ms + 780ms) 1;
  }
}

/* --- §04: agent activity log (typed on reveal) --- */
.agent-log {
  margin-top: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem 0.8rem;
  background: rgba(2, 22, 33, 0.55);
}
.agent-log .mock-mono { margin-bottom: 0.55rem; }
.log-line {
  position: relative;
  margin: 0 0 0.35rem;
  padding-left: 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  min-height: 1.5em;
  color: var(--text-muted);
}
.log-line::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.log-line.typing-pending::before { opacity: 0; }
.log-line.typing::after {
  content: '▍';
  color: var(--accent);
  animation: caret-blink 0.7s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Freigeben button arms once the agent is done */
@media (prefers-reduced-motion: no-preference) {
  @keyframes freigabe-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(90, 180, 230, 0); }
    35% { box-shadow: 0 0 0 5px rgba(90, 180, 230, 0.16), 0 0 18px rgba(90, 180, 230, 0.35); }
  }
  .fa-primary.armed { animation: freigabe-pulse 2s ease-out 2; }
}

/* --- §05: the Freigabe halt — line draws, stops at the human, pings, continues --- */
.tl-progress {
  position: absolute;
  top: 8px;
  left: 10%;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(165, 216, 230, 0.55), var(--accent));
  box-shadow: 0 0 12px rgba(165, 216, 230, 0.35);
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) {
  .timeline.armed .tl-step { opacity: 0; }
  .timeline.play .tl-step { animation: rise-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .timeline.play .tl-step:nth-child(2) { animation-delay: 0.05s; }
  .timeline.play .tl-step:nth-child(3) { animation-delay: 0.55s; }
  .timeline.play .tl-step:nth-child(4) { animation-delay: 1.1s; }
  .timeline.play .tl-step:nth-child(5) { animation-delay: 1.65s; }
  .timeline.play .tl-step:nth-child(6) { animation-delay: 3.15s; }

  @keyframes tl-draw {
    0%   { width: 0; }
    46%  { width: 60%; }  /* reaches "Mensch entscheidet" … */
    68%  { width: 60%; }  /* … and halts: the machine waits for Freigabe */
    100% { width: 80%; }
  }
  .timeline.play .tl-progress { animation: tl-draw 3.6s cubic-bezier(0.45, 0, 0.25, 1) 0.1s both; }

  /* sonar ping on the human dot while the line waits */
  .tl-dot.human::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
  }
  @keyframes sonar {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.3); opacity: 0; }
  }
  .timeline.play .tl-dot.human::after { animation: sonar 1s ease-out 1.75s 2; }
}
@media (max-width: 860px) { .tl-progress { display: none; } }

/* --- §05: inline CTA after the story peak --- */
.callout-cta {
  margin-top: 2.4rem;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-color: rgba(165, 216, 230, 0.22);
}
.callout-cta .callout-text { flex: 1 1 320px; }
.btn-cta-sm { padding: 9px 22px; font-size: 0.82rem; flex: none; }


/* ============================================================
   TEASER COLOR SYSTEM — orange marks pain + payoff, exactly as
   in the Kundenteaser (v02): pressure-card titles (slide 04),
   the agent caption (slide 06), the knowledge banner (slide 10).
   The >60.000 € stays the single orange money figure.
   ============================================================ */
.card.pressure h3 { color: var(--accent-glow); }
.folder-note { color: var(--accent-glow); }
.callout-glow span { color: var(--accent-glow); }

/* ============================================================
   THE DIVE — the whole page descends like the orca:
   ice-white surface (hero, §01–§02) → the plunge (dive band)
   → step-by-step darker into the deep (§03 → footer).
   Section gradients are CHAINED (each starts where the previous
   ended) so the descent reads as one continuous water column.
   ============================================================ */

/* --- Page underlay (visible only in the 14px body frame) --- */
body.home {
  background: linear-gradient(180deg,
    #FBFDFE 0%, #E8F3F9 8%, #CFE7F1 24%, #4E8FB0 30%,
    #0C3A52 36%, #06283C 55%, #041822 75%, #01090E 100%);
}

/* --- Depth ladder --- */
.section.l1  { background: linear-gradient(180deg, #EDF6FA, #DFEEF6); }
.section.l2  { background: linear-gradient(180deg, #DFEEF6, #C9E3EF); }
.section.dive {
  background: linear-gradient(180deg,
    #C9E3EF 0%, #A3CFDF 20%, #63A3BD 42%, #2A6A88 62%, #0D3E58 84%, #0C3A52 100%);
}
.section.d1  { background: linear-gradient(180deg, #0C3A52, #0A3449); }
.section.d2  { background: linear-gradient(180deg, #0A3449, #082E41); }
.section.d3  { background: linear-gradient(180deg, #082E41, #072839); }
.section.d4  { background: linear-gradient(180deg, #072839, #062331); }
.section.d5  { background: linear-gradient(180deg, #062331, #051D2A); }
.section.d6  { background: linear-gradient(180deg, #051D2A, #041822); }
.section.d7  { background: linear-gradient(180deg, #041822, #03121B); }
.section.d8  { background: linear-gradient(180deg, #03121B, #020D14); }
.section.d9  { background: linear-gradient(180deg, #020D14, #01090E); }
.site-footer { background: #01090E; }

/* No hairline where the water itself changes */
.section.dive::before, .section.d1::before { display: none; }
.section.light::before {
  background: linear-gradient(90deg, transparent, rgba(2, 29, 46, 0.12), transparent);
}

/* --- The dive band: one line, spoken at depth --- */
.dive-inner {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 22vh;
}
.dive-line {
  color: #fff;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
}

/* ============ ICE WORLD — hero ============ */
.hero-card {
  background: linear-gradient(180deg, #FBFDFE, #E9F4F9);
  border-color: rgba(2, 29, 46, 0.08);
  color: #0B2C40;
}
.hero-card::before {
  background:
    radial-gradient(circle at 50% -70%,
      transparent 60%,
      rgba(165, 216, 230, 0.10) 66%,
      rgba(165, 216, 230, 0.22) 72%,
      rgba(165, 216, 230, 0.34) 80%,
      rgba(163, 207, 223, 0.42) 90%,
      rgba(163, 207, 223, 0.5) 100%),
    radial-gradient(circle at 50% 35%, rgba(252, 97, 45, 0.05) 0%, transparent 50%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(2, 29, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 29, 46, 0.06) 1px, transparent 1px);
}
.hero-heading { color: #062A3F; }
.hero-heading strong {
  background: linear-gradient(to right, #0C3A52, #1D7FA8);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub { color: #3F5A6B; }
.hero-trust { color: rgba(6, 42, 63, 0.6); }
.hero-card .btn-cta { background: #06283C; color: #fff; border: 1px solid #06283C; }
.hero-card .btn-cta:hover { box-shadow: 0 10px 24px rgba(6, 40, 60, 0.3); }

/* Hero pipeline on ice: light side nodes, the orca stays dark (in the water) */
.pipeline-line { background: linear-gradient(90deg, rgba(2, 29, 46, 0.28), rgba(2, 29, 46, 0.1)); }
.pipeline-line.right { background: linear-gradient(90deg, rgba(2, 29, 46, 0.1), rgba(2, 29, 46, 0.28)); }
.icon-node {
  background: #EAF4F9;
  box-shadow:
    6px 6px 12px rgba(58, 92, 112, 0.22),
    -4px -4px 10px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px rgba(255, 255, 255, 0.9),
    inset 4px 4px 8px rgba(58, 92, 112, 0.1);
}
.icon-node:hover {
  box-shadow:
    8px 8px 16px rgba(58, 92, 112, 0.28),
    -5px -5px 12px rgba(255, 255, 255, 0.9),
    inset 1px 1px 1px rgba(255, 255, 255, 0.9),
    inset 4px 4px 8px rgba(58, 92, 112, 0.1);
}
.icon-node::after { border-color: rgba(2, 29, 46, 0.18); }
.icon-node svg { stroke: rgba(6, 42, 63, 0.7); }
.node-light-right::before { background: radial-gradient(circle at right, rgba(12, 58, 82, 0.28) 0%, transparent 70%); }
.node-light-left::before { background: radial-gradient(circle at left, rgba(29, 127, 168, 0.35) 0%, transparent 70%); }

/* ============ ICE WORLD — light sections (§01, §02) ============ */
.section.light { color: #0B2C40; }
.section.light h2 { color: #062A3F; }
.section.light .section-lead { color: #46647A; }
.section.light .sub-mono { color: #5A768A; }
.section.light .eyebrow { color: #16688A; }
.section.light .eyebrow::before { background: #16688A; }

.section.light .card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(2, 29, 46, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(6, 42, 63, 0.08);
}
.section.light .card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(2, 29, 46, 0.22);
  box-shadow: 0 12px 30px rgba(6, 42, 63, 0.12);
}
.section.light .card h3 { color: #062A3F; }
.section.light .card p { color: #46647A; }
.section.light .card .ctag { color: #16688A; }
.section.light .card.hl { border-color: rgba(2, 29, 46, 0.3); background: rgba(255, 255, 255, 0.85); }
.section.light .card.pressure h3 { color: #E24E1B; }
.section.light .chip { color: #16688A; border-color: rgba(12, 58, 82, 0.25); }
.section.light .chip-check { color: #06283C; background: rgba(29, 127, 168, 0.12); border-color: rgba(12, 58, 82, 0.35); }
.section.light .legend { color: #5A768A; }
.section.light .flow-arrow { color: rgba(70, 100, 122, 0.8); }

.section.light .flow-box {
  border-color: rgba(2, 29, 46, 0.14);
  border-top-color: rgba(12, 58, 82, 0.45);
  background: rgba(255, 255, 255, 0.55);
}
.section.light .flow-line .flow-box { background: #F6FBFD; border-top-color: rgba(2, 29, 46, 0.14); }
.section.light .split { background: #0B2C40; }
.section.light .split::before { background: #2E93C9; }
.section.light .flow-token {
  color: #0B4863;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(12, 58, 82, 0.3);
  box-shadow: 0 6px 18px rgba(6, 42, 63, 0.18), 0 0 16px rgba(46, 147, 201, 0.14);
}
.section.light .flow-token svg { stroke: #16688A; }

.section.light .flow-box.step strong { color: #062A3F; }
.section.light .flow-box .act { color: #E24E1B; }
.section.light .flow-box.miss { border-color: rgba(70, 100, 122, 0.5); background: transparent; }
.section.light .flow-box.miss strong { color: #062A3F; }
.section.light .flow-box.miss .act { color: #5A768A; }

.section.light .callout {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(2, 29, 46, 0.12);
}
.section.light .callout strong { color: #062A3F; }
.section.light .callout span { color: #46647A; }
.section.light .callout-file .callout-ic { stroke: #16688A; }
.section.light :focus-visible { outline-color: #16688A; }

/* ============ ADAPTIVE NAV — light glass above the dive, dark below ============ */
nav { transition: background 0.35s ease, border-color 0.35s ease; }
nav.nav--light {
  background: rgba(246, 251, 253, 0.78);
  border-color: rgba(2, 29, 46, 0.08);
}
nav.nav--light .nav-logo img { filter: brightness(0) saturate(100%); opacity: 0.85; }
nav.nav--light .nav-links a { color: #46647A; }
nav.nav--light .nav-links a:hover { color: #062A3F; }
nav.nav--light .nav-links a::after { background: #16688A; }
nav.nav--light .btn-login { background: rgba(2, 29, 46, 0.05); border-color: rgba(2, 29, 46, 0.16); color: #062A3F; }
nav.nav--light .btn-login:hover { background: rgba(2, 29, 46, 0.1); }
nav.nav--light .btn-signup { background: #06283C; border-color: #06283C; color: #fff; }
nav.nav--light .menu-toggle span { background: #062A3F; }
nav.nav--light .menu-toggle.active span { background: #fff; }
@media (max-width: 768px) {
  nav.nav--light .nav-menu { background: var(--bg); } /* fullscreen overlay stays dark */
}
