/* ─────────────────────────────────────────────────────────────
   M. Arndt — AI Systems
   Premium B2B AI consultant homepage
   ───────────────────────────────────────────────────────────── */

/* Defensive: some preview environments override the UA default
   and render <noscript> content as text. Force-hide it when JS
   is enabled (this rule only ships in the JS-on path anyway). */
noscript { display: none !important; }

:root {
  /* Light palette — warm off-white, fast-near-black ink */
  --bg: #F7F5F0;
  --bg-alt: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elev: #FBFAF6;
  --ink: #0E0E0C;
  --ink-2: #2A2A26;
  --muted: #6B6A63;
  --muted-2: #9A9890;
  --line: rgba(14, 14, 12, 0.08);
  --line-2: rgba(14, 14, 12, 0.14);
  --line-strong: rgba(14, 14, 12, 0.22);
  --accent: #E25822;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(226, 88, 34, 0.08);
  --shadow-card: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(14,14,12,.04), 0 8px 24px rgba(14,14,12,.04);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 6px rgba(14,14,12,.05), 0 24px 48px rgba(14,14,12,.08);

  /* Density (overridden via inline style on <html data-density>) */
  --section-py: clamp(96px, 11vw, 160px);
  --container-px: clamp(24px, 5vw, 64px);
  --container-max: 1280px;
  --gap-grid: clamp(16px, 1.6vw, 24px);

  /* Type — Neue Haas Grotesk feel via Inter Tight (free) + tight tracking */
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-density="compact"] {
  --section-py: clamp(64px, 7vw, 104px);
  --container-px: clamp(20px, 4vw, 48px);
  --gap-grid: clamp(12px, 1.2vw, 18px);
}
[data-density="comfy"] {
  --section-py: clamp(120px, 14vw, 200px);
  --container-px: clamp(28px, 6vw, 80px);
  --gap-grid: clamp(20px, 2vw, 32px);
}

[data-theme="dark"] {
  --bg: #0C0C0B;
  --bg-alt: #121210;
  --bg-card: #16161394;
  --bg-elev: #1A1A17;
  --ink: #F5F3EE;
  --ink-2: #DCDAD3;
  --muted: #97958C;
  --muted-2: #6F6D66;
  --line: rgba(245, 243, 238, 0.10);
  --line-2: rgba(245, 243, 238, 0.16);
  --line-strong: rgba(245, 243, 238, 0.28);
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.45);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 48px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-px);
}

/* Type scale — Apple-grade hierarchy */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-no-rule::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.h-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 56ch;
}
.muted { color: var(--muted); }
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "cv11";
  font-size: 0.86em;
  letter-spacing: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0.5px solid transparent;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  width: 14px; height: 14px;
  display: inline-block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 92%, black); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--line-strong); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* Section scaffolding */
.section { padding-block: var(--section-py); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

/* Hairline separators between sections (fine detail) */
.section + .section { border-top: 0.5px solid var(--line); }

/* Card primitives */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Subtle dot grid for hero */
.dotgrid {
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Progress dots row helpers */
.row-dots { display:flex; gap:6px; align-items:center; }
.dot { width:6px; height:6px; border-radius:999px; background: var(--line-strong); }
.dot.on { background: var(--accent); }

/* Tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  height: 24px;
  border-radius: 999px;
  border: 0.5px solid var(--line-2);
  background: var(--bg-elev);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.tag .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Fine number readout */
.kpi-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}

/* Footer ground line */
.ground { height: 0.5px; background: var(--line); width: 100%; }

/* Hide scrollbar in horizontal scrollers */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .status-dot, .tag .pulse { animation: none !important; }
}

/* ─────────────────────────────────────────────────────────
   Golden Ratio + Fibonacci spacing tokens (φ ≈ 1.618)
   Applied across layout, gaps, padding and rhythm.
   ───────────────────────────────────────────────────────── */
:root {
  --fib-1: 8px;
  --fib-2: 13px;
  --fib-3: 21px;
  --fib-4: 34px;
  --fib-5: 55px;
  --fib-6: 89px;
  --fib-7: 144px;
  --phi: 1.618;
  --phi-major: 61.8%;
  --phi-minor: 38.2%;
}

/* Golden-ratio-leaning utility for inline lists with no decoration */
.bare-list { list-style: none; padding: 0; margin: 0; }

/* Reusable outcome chip — used in hero rail / fit cols */
.outcome-chip {
  display: inline-flex; align-items: center; gap: var(--fib-1);
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg-card);
  border: 0.5px solid var(--line-2);
  border-radius: 999px;
  white-space: nowrap;
}
.outcome-chip .dot {
  width: 6px; height: 6px; border-radius: 99px; background: var(--accent);
}

/* ─── Accessibility: sichtbare Focus-Indikatoren für Tastatur-Navigation ─── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
.btn:focus-visible,
.faq-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
