/* SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0 · Copyright (C) 2026 Oliver Schmidt */
/* okai.data-integrator.de: deep navy by default, blue buttons, light blue and cyan accents, labels in code style;
   light or like the system when chosen in the header (data-theme, theme.js). Fonts: Space Grotesk, DM Sans and
   JetBrains Mono when the system has them, else the system's own. No inline styles: the pages run under a strict
   Content-Security-Policy. */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1322;
  --surface: #111727;
  --surface-2: #162036;
  --line: #1f2a40;
  --line-strong: #2a3756;
  --mesh: 96, 165, 250;
  --text: #e6eaf2;
  --text-soft: #a5b1c6;
  --text-dim: #94a3b8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --ok: #22c55e;
  --glow: rgba(37, 99, 235, 0.28);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --icon-filter: invert(1) sepia(1) saturate(4) hue-rotate(180deg) brightness(1.1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 20px;
  --radius-s: 12px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --line: #dbe3f0;
  --line-strong: #c4d1e6;
  --mesh: 37, 99, 235;
  --text: #0f172a;
  --text-soft: #334155;
  --text-dim: #64748b;
  --accent: #1d4ed8;
  --accent-2: #0891b2;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --ok: #15803d;
  --glow: rgba(37, 99, 235, 0.14);
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  --icon-filter: invert(27%) sepia(90%) saturate(2500%) hue-rotate(216deg);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #f6f8fc;
    --bg-alt: #eef2f9;
    --surface: #ffffff;
    --surface-2: #f1f5fb;
    --line: #dbe3f0;
    --line-strong: #c4d1e6;
    --mesh: 37, 99, 235;
    --text: #0f172a;
    --text-soft: #334155;
    --text-dim: #64748b;
    --accent: #1d4ed8;
    --accent-2: #0891b2;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --ok: #15803d;
    --glow: rgba(37, 99, 235, 0.14);
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    --icon-filter: invert(27%) sepia(90%) saturate(2500%) hue-rotate(216deg);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  /* the footer stays at the bottom of short pages (404, legal) */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--mono); }
code { font-size: 0.86em; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 6px 10px; border-radius: 6px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 17px var(--font-head); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .ver { font: 500 12px var(--mono); color: var(--accent-2); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-soft); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

.tools { display: flex; align-items: center; gap: 12px; margin-left: 18px; }
.lang { font: 13px var(--mono); color: var(--text-dim); white-space: nowrap; }
.lang a { color: var(--text-dim); }
.lang a[aria-current="true"] { color: var(--text); font-weight: 600; }

.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.theme button {
  border: 0;
  background: none;
  color: var(--text-dim);
  border-radius: 999px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.theme svg { width: 15px; height: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-soft); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 30px var(--glow); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.top .btn { padding: 8px 16px; font-size: 14px; box-shadow: none; }

/* ---------------------------------------------------------------- hero: words left, a terminal right, figures, chips */
.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 80% 10%, var(--glow), transparent 70%),
    radial-gradient(40% 50% at 0% 30%, rgba(34, 211, 238, 0.08), transparent 70%);
}
/* the moving mesh behind the hero (drawn by theme.js; its colours come from --mesh) */
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .wrap { position: relative; }
.hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: 500 13px var(--mono);
  color: var(--text-soft);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.035em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 19px; color: var(--text-soft); margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { font: 12.5px/1.6 var(--mono); color: var(--text-dim); margin: 18px 0 0; }

.console {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #070b14;
  color: #cbd5e1;
  box-shadow: var(--shadow);
}
.chrome { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.console .chrome { background: #0b1120; border-color: #1a2336; }
.console .chrome i { background: #243049; }
.chrome span { font: 12px var(--mono); color: var(--text-dim); margin-left: 8px; }
.console pre { margin: 0; padding: 20px 22px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.console .p { color: #22d3ee; }
.console .k { color: #60a5fa; }
.console .s { color: #a5f3fc; }
.console .c { color: #64748b; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: #22d3ee; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 72px 0 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text-dim); font-size: 15px; }
.stat .value {
  display: block;
  font: 700 40px/1.1 var(--font-head);
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg-alt); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip { font: 500 13px var(--mono); color: var(--text-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .pulse, .caret, .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- sections */
section.band { padding: 104px 0; }
section.band.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { margin-bottom: 44px; max-width: 48em; }
.head .label { display: block; font: 500 14px var(--mono); color: var(--accent-2); margin-bottom: 14px; }
.head h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; margin: 0 0 14px; }
.head p { margin: 0; color: var(--text-soft); font-size: 18px; }

.window { border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow), 0 0 100px var(--glow); overflow: hidden; }
.window img { width: 100%; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.card .ico { width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--accent-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: 20px; }
/* the icons are black SVG files: tinted to the accent */
.card .ico img { width: 20px; height: 20px; filter: var(--icon-filter); }

.tag { display: block; font: 600 12px var(--mono); color: var(--ok); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: start; }
.more-link { font: 500 14px var(--mono); margin: 4px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps .num { display: block; font: 500 14px var(--mono); color: var(--accent); margin-bottom: 16px; }
.steps .card { position: relative; overflow: hidden; }
.steps .card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent-2)); }

/* ---------------------------------------------------------------- gallery and its large view */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.thumb { padding: 0; overflow: hidden; color: var(--text-soft); font-size: 14px; }
.thumb:hover { text-decoration: none; color: var(--text); }
.thumb img { border-bottom: 1px solid var(--line); }
.thumb span { display: block; padding: 14px 18px 16px; }

.lightbox {
  border: 0;
  padding: 0;
  background: none;
  /* room on both sides for the buttons beside the picture */
  max-width: min(1280px, calc(100vw - 150px));
  width: 100%;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(3, 6, 14, 0.88); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius-s); }
.lightbox figcaption { text-align: center; color: #cbd5e1; font: 13px var(--mono); margin-top: 12px; }
.lightbox button {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(13, 19, 34, 0.85);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { border-color: #22d3ee; }
.lb-prev { left: -60px; top: 45%; }
.lb-next { right: -60px; top: 45%; }
.lb-close { right: -60px; top: -8px; }

.more { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- text pages (MCP guide, changes, legal) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 880px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; margin: 0 0 18px; }
.doc h2 { margin: 44px 0 12px; font-size: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc h3 { margin: 28px 0 8px; font-size: 19px; }
.doc p, .doc li { color: var(--text-soft); }
.doc strong { color: var(--text); }
.doc pre { background: #070b14; color: #cbd5e1; border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 16px 18px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text-dim); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.back { font: 13px var(--mono); margin: 0 0 28px; }
.label404 { display: block; font: 500 14px var(--mono); color: var(--accent-2); margin-bottom: 14px; }
.doc .more { margin-top: 28px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--text-dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--text-dim); }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1080px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .hero-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { right: 8px; top: 8px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .split, .grid.three, .steps, .gallery { grid-template-columns: 1fr; }
  .top .btn, .brand .ver { display: none; }
  .top .wrap { gap: 10px; height: 62px; }
  .wrap { padding: 0 18px; }
  section.band { padding: 72px 0; }
  .lead { font-size: 17px; }
  .console pre { font-size: 11.5px; }
  .stat { padding: 20px; }
  .stat .value { font-size: 32px; }
}
