:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0e1116;
  --muted: #5b6472;
  --line: #d9dde3;
  --accent: #2f4bff;
  --accent-soft: rgba(47, 75, 255, 0.08);
  --ok: #0f7b4f;
  --warn: #9a6200;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --surface: #12151a;
    --ink: #e8ebf0;
    --muted: #8b94a3;
    --line: #232831;
    --accent: #8493ff;
    --accent-soft: rgba(132, 147, 255, 0.1);
    --ok: #4cc38a;
    --warn: #e0a84a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Language switching: English is the default without JavaScript */
html:not([data-lang="de"]) .de { display: none !important; }
html[data-lang="de"] .en { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  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; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang button {
  font: inherit; font-family: var(--mono); font-size: 12px;
  padding: 5px 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%);
  opacity: 0.7;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.eyebrow { color: var(--accent); margin: 0 0 18px; }
h1 {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 680; margin: 0 0 22px; text-wrap: balance;
}
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 7px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); margin-left: 8px; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Readout table in hero */
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.readout-head { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.readout a { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 13px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.readout a:last-child { border-bottom: 0; }
.readout a:hover { background: var(--accent-soft); color: inherit; }
.readout .name { font-weight: 600; }
.readout .plat { color: var(--muted); }

.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.dev { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.tag.soon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

/* Sections */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 44px; }
.section-head .mono { color: var(--muted); padding-top: 9px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; font-weight: 660; }
.section-head p { margin: 0; color: var(--muted); max-width: 40em; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; scroll-margin-top: 80px; }
.app.wide { grid-column: 1 / -1; }
.app-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.glyph { flex: none; width: 52px; height: 52px; border-radius: 11px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.glyph svg { width: 28px; height: 28px; }
.app h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.app > p { margin: 0 0 14px; }
.app ul { margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 15.5px; }
.app li { padding: 7px 0 7px 22px; border-top: 1px solid var(--line); position: relative; }
.app li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 1.5px; background: var(--accent); }
.app-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.principles > div { padding: 28px; border-right: 1px solid var(--line); }
.principles > div:last-child { border-right: 0; }
.principles .mono { color: var(--accent); margin-bottom: 12px; display: block; }
.principles h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.015em; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* About / Support */
.prose { max-width: 40em; }
.prose p { margin: 0 0 16px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 8px; padding: 16px 18px; color: var(--muted); font-size: 15.5px; max-width: 40em; }

/* Footer */
footer { padding: 36px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }

/* Legal pages */
.legal { padding: 64px 0 84px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal .prose { color: var(--ink); }
.placeholder { background: color-mix(in srgb, var(--warn) 18%, transparent); border-radius: 3px; padding: 1px 5px; font-family: var(--mono); font-size: 0.88em; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .apps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .principles > div:last-child { border-bottom: 0; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .wrap { padding: 0 16px; }
  .btn.ghost { margin: 10px 0 0; }
  .readout a { grid-template-columns: 1fr auto; }
  .readout .plat { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
