/* =========================================================================
   Diracor — Landingpage Designsystem
   Stil: ruhig, editorial, warm-neutral, Indigo-Akzent, farbige Status-Codes.
   ========================================================================= */

/* ---- Fonts: werden im <head> jeder Seite geladen ---- */

/* ---- Tokens ---- */
:root {
  /* Neutrals (warm) */
  --bg:        oklch(0.975 0.008 85);
  --bg-2:      oklch(0.955 0.010 84);
  --surface:   oklch(0.995 0.004 85);
  --surface-2: oklch(0.965 0.009 84);
  --ink:       oklch(0.235 0.012 60);
  --ink-2:     oklch(0.430 0.012 60);
  --ink-3:     oklch(0.600 0.010 60);
  --line:      oklch(0.895 0.010 80);
  --line-2:    oklch(0.840 0.012 80);

  /* Brand accent (Indigo) — overridable by Tweaks */
  --accent:        oklch(0.505 0.180 274);
  --accent-strong: oklch(0.420 0.180 274);
  --accent-soft:   oklch(0.945 0.035 274);
  --accent-line:   oklch(0.840 0.070 274);
  --on-accent:     oklch(0.985 0.010 274);

  /* Status hues — calm by default (vivid variant below) */
  --human: oklch(0.560 0.115 248);  /* Mensch  — kühles Blau */
  --agent: oklch(0.560 0.150 300);  /* KI-Agent — warmes Violett */
  --done:  oklch(0.585 0.110 152);  /* erledigt/positiv */
  --block: oklch(0.595 0.150 27);   /* blockierend/kritisch */
  --active:oklch(0.600 0.130 240);  /* in Arbeit */
  --warn:  oklch(0.760 0.115 82);   /* Vorsicht/Warnschwelle */

  --human-soft: color-mix(in oklch, var(--human) 14%, var(--surface));
  --agent-soft: color-mix(in oklch, var(--agent) 14%, var(--surface));
  --done-soft:  color-mix(in oklch, var(--done) 16%, var(--surface));
  --block-soft: color-mix(in oklch, var(--block) 15%, var(--surface));
  --warn-soft:  color-mix(in oklch, var(--warn) 30%, var(--surface));

  /* Radii / shadow / motion */
  --r-xs: 6px; --r-sm: 9px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px oklch(0.4 0.03 70 / 0.06), 0 2px 6px oklch(0.4 0.03 70 / 0.05);
  --shadow-md: 0 4px 14px oklch(0.4 0.03 70 / 0.08), 0 1px 3px oklch(0.4 0.03 70 / 0.06);
  --shadow-lg: 0 18px 50px oklch(0.35 0.03 70 / 0.12), 0 4px 12px oklch(0.35 0.03 70 / 0.07);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Type families */
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
}

/* Vivid status variant (Tweak: Status-Buntheit = bunt) */
:root[data-vivid="on"] {
  --human: oklch(0.575 0.155 250);
  --agent: oklch(0.575 0.195 300);
  --done:  oklch(0.620 0.155 150);
  --block: oklch(0.610 0.200 27);
  --active:oklch(0.620 0.175 242);
  --warn:  oklch(0.790 0.160 82);
}

/* Dark theme (Tweak: Dark mode) */
:root[data-theme="dark"] {
  --bg:        oklch(0.205 0.012 280);
  --bg-2:      oklch(0.235 0.014 280);
  --surface:   oklch(0.255 0.016 280);
  --surface-2: oklch(0.290 0.018 280);
  --ink:       oklch(0.955 0.010 85);
  --ink-2:     oklch(0.800 0.012 85);
  --ink-3:     oklch(0.640 0.012 85);
  --line:      oklch(0.345 0.016 280);
  --line-2:    oklch(0.420 0.018 280);
  --accent:        oklch(0.680 0.150 274);
  --accent-strong: oklch(0.760 0.130 274);
  --accent-soft:   oklch(0.320 0.060 274);
  --accent-line:   oklch(0.430 0.090 274);
  --on-accent:     oklch(0.180 0.030 274);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.30), 0 2px 6px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35), 0 1px 3px oklch(0 0 0 / 0.30);
  --shadow-lg: 0 18px 50px oklch(0 0 0 / 0.45), 0 4px 12px oklch(0 0 0 / 0.35);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: 0.001em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.018em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vh, 132px); position: relative; }
.section--tint { background: var(--bg-2); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.h-sec { font-size: clamp(30px, 4.4vw, 50px); margin-top: 18px; max-width: 18ch; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 60ch; margin-top: 18px; line-height: 1.55; }
.sec-head { margin-bottom: clamp(40px, 6vh, 64px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 22px; border-radius: var(--r-pill); font-family: var(--font-display);
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---- Chips / status pills ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500;
  padding: 5px 11px 5px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip--live { color: color-mix(in oklch, var(--done) 70%, var(--ink)); border-color: color-mix(in oklch, var(--done) 35%, var(--line)); background: var(--done-soft); }
.chip--live .dot { background: var(--done); }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card .rk { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; }
}
