/* software.emluk.de — shared styles. No external fonts or scripts on purpose. */
:root {
  --bg: #0f1115;
  --bg2: #15171c;
  --bg3: #1b1e24;
  --bg4: #22262e;
  --line: #2a2f38;
  --line2: #3b414d;
  --fg: #e8eaee;
  --fg2: #a9b0bc;
  --fg3: #7a8290;
  --accent: #7c8cff;
  --accent-2: #3ccfd8;
  --accent-fg: #0f1115;
  --ok: #3ccf7f;
  --warn: #f5a524;
  --bad: #f2555a;
  --info: #4ea1ff;
  --violet: #a78bfa;
  --tok-key: #8ab4ff;
  --tok-str: #9fdc8c;
  --tok-num: #f8b26a;
  --tok-punc: #8a93a3;
  --glow: rgba(124, 140, 255, .18);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg2: #ffffff;
    --bg3: #f0f2f5;
    --bg4: #e4e7ec;
    --line: #e1e4ea;
    --line2: #c9ced6;
    --fg: #161a21;
    --fg2: #4a5260;
    --fg3: #7d8593;
    --accent: #4f5fe8;
    --accent-2: #0e9fa8;
    --accent-fg: #ffffff;
    --tok-key: #1d5fd6;
    --tok-str: #1f7a2e;
    --tok-num: #b35400;
    --tok-punc: #6b7380;
    --glow: rgba(79, 95, 232, .12);
    --shadow: 0 30px 70px -25px rgba(20, 30, 60, .28), 0 0 0 1px var(--line);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .08em .38em;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: .1em .45em;
  border: 1px solid var(--line2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg3);
  color: var(--fg);
  font-size: .8em;
  text-align: center;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand .crumb { color: var(--fg3); font-weight: 400; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg2); font-size: .94rem; }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 .98rem/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5b6cff 0%, #7c5cff 55%, #a855f7 100%);
  box-shadow: 0 8px 24px -8px rgba(110, 90, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(110, 90, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-ghost { color: var(--fg); background: var(--bg3); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg4); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .9rem; border-radius: 8px; }

.select {
  position: relative;
  display: inline-flex;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding: 0 40px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--fg);
  font: 500 .96rem/1 var(--sans);
  cursor: pointer;
  width: 100%;
}
.select select:hover { border-color: var(--fg3); }
.select::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--fg2);
  border-bottom: 2px solid var(--fg2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.lead { color: var(--fg2); font-size: 1.12rem; max-width: 640px; margin: 16px 0 0; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--fg3); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--fg3); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer a { color: var(--fg2); }
.site-footer .spacer { flex: 1; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.site-footer .disclaimer {
  flex: 1 1 100%;
  margin: 12px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: none;
  color: var(--fg3);
  font-size: .82rem;
  line-height: 1.6;
}
.site-footer .disclaimer strong { color: var(--fg2); font-weight: 600; }
