:root {
  --bg: #090b12;
  --bg-soft: #111522;
  --card: rgba(255,255,255,.06);
  --card-strong: rgba(255,255,255,.1);
  --text: #edf2ff;
  --muted: #aeb8d4;
  --line: rgba(255,255,255,.13);
  --brand: #78f0c4;
  --brand-2: #85a7ff;
  --danger: #ffb86b;
  --shadow: 0 22px 80px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(120,240,196,.16), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(133,167,255,.18), transparent 32rem),
    linear-gradient(180deg, #090b12 0%, #0c1020 48%, #090b12 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }
code, pre { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
code {
  color: #dbe7ff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: .45rem;
  padding: .08rem .32rem;
}
pre {
  overflow: auto;
  background: #080b13;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
pre code { background: transparent; border: 0; padding: 0; color: #eaf0ff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(22px);
  background: rgba(9,11,18,.78);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: .9rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #09101a;
  font-weight: 900;
}
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: -.12rem; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: center; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .5rem .7rem;
  border-radius: 999px;
  font-size: .94rem;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 999px; padding: .2rem; }
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: .42rem .62rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.lang-switch button.active { background: var(--text); color: #0a0e18; }

.section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0; }
.hero { min-height: calc(100vh - 80px); display: flex; align-items: center; }
.hero-copy { width: 100%; }
.hero h1 { margin: .3rem 0 1rem; font-size: clamp(2.7rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -.06em; max-width: 15ch; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 78ch; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .78rem; margin: 0 0 .65rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 800;
}
.button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #07101b; border-color: transparent; }
.button.ghost { color: var(--text); background: rgba(255,255,255,.06); }
.hero-card, .card, .model, .callout {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.045));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-card { padding: 1.4rem; position: relative; overflow: hidden; }
.status-dot { width: .72rem; height: .72rem; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 8px rgba(120,240,196,.12); display: inline-block; }
dl { margin: 1rem 0 0; display: grid; gap: .8rem; }
dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: .05rem 0 0; }

.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 1rem; }
h3 { margin-top: 0; line-height: 1.2; }
p { color: var(--muted); }
.callout { padding: 1.2rem; border-color: rgba(120,240,196,.25); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.card { padding: 1.1rem; }
.card p { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255,255,255,.04); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { text-align: left; vertical-align: top; padding: .85rem .95rem; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.05); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.small-top { margin-top: 1.4rem; }

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.model { padding: 1rem; }
.model pre { margin-bottom: 0; font-size: .82rem; box-shadow: none; }
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.examples article { min-width: 0; }
.notes { display: grid; gap: .8rem; padding-left: 1.2rem; color: var(--muted); }
.deploy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.3rem; align-items: center; }
.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer a { color: var(--text); text-decoration: none; }

[data-lang="de"] [data-en],
[data-lang="en"] [data-de] { display: none !important; }

@media (max-width: 980px) {
  .grid.two, .deploy { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .cards, .model-grid, .examples { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3rem; }
  .footer { flex-direction: column; }
}

.section-subtitle { margin-top: 2rem; }

.userdoc-section h4 { margin: 0 0 .4rem; color: var(--text); }
.doc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 1.2rem;
  align-items: stretch;
}
.doc-grid { align-items: center; }
.doc-steps { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.doc-steps li { margin: .55rem 0; }
.doc-steps strong { color: var(--text); }
.doc-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.doc-columns > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255,255,255,.045);
}
.screenshot-feature,
.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}
.screenshot-feature img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #080b13;
}
.screenshot-feature figcaption,
.screenshot-card figcaption {
  padding: .75rem .9rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.screenshot-grid .screenshot-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 980px) {
  .doc-hero-grid, .doc-columns, .screenshot-grid { grid-template-columns: 1fr; }
}

.command-grid,
.method-grid,
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.command-card,
.method-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}
.command-card h3,
.method-card h3 { margin-bottom: .55rem; }
.command-card code,
.method-card code { word-break: break-word; }
.config-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .command-grid, .method-grid, .config-grid { grid-template-columns: 1fr; }
}
