@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

/* ───────────────── Resolvry – Design-System ───────────────── */
:root {
  --bg: #000000;
  --bg-2: #060607;
  --surface: #0b0b0c;
  --surface-2: #141416;
  --border: #1d1d20;
  --border-2: #2b2b30;
  --text: #f4f4f5;
  --muted: #9b9ba4;
  --faint: #60606a;
  --accent: #ffffff;
  --accent-2: #d4d4d8;
  --accent-ink: #000000;
  --glow: 0 0 18px rgba(255, 255, 255, .35), 0 0 48px rgba(255, 255, 255, .12);
  --danger: #f2555a;
  --warn: #f5a524;
  --ok: #4ade80;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .9);
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 255, 255, .3); }

.container { width: min(1160px, 100% - 48px); margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 14px var(--font); cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 22px rgba(255, 255, 255, .22); }
.btn-primary:hover { background: #e7e7ea; box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(242, 85, 90, .35); }
.btn-danger:hover { background: rgba(242, 85, 90, .1); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 18, .72);
  border-bottom: 1px solid rgba(33, 43, 55, .6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── Landing: Hero ── */
.hero { position: relative; padding: 490px 0 90px; overflow: hidden; text-align: center; isolation: isolate; }
.hero-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: -1;
  background: #000 url('/assets/hero.svg') center top / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(#000 74%, transparent 100%);
          mask-image: linear-gradient(#000 74%, transparent 100%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .94; } 50% { opacity: 1; } }
.hero p.lead { margin-left: auto !important; margin-right: auto !important; }
.hero-cta { justify-content: center; }
.hero-meta { justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.mono { font-family: var(--mono); }
.term { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.term b { color: #fff; font-weight: 500; }
.blink { display: inline-block; width: 8px; height: 13px; background: #fff; vertical-align: -1px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px !important;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25);
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.04em; margin: 20px 0 18px; font-weight: 800; }
.hero h1 .hl { color: #fff; text-shadow: 0 0 22px rgba(255, 255, 255, .55), 0 0 60px rgba(255, 255, 255, .25); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 38px; color: var(--muted); font-size: 13px; }
.hero-meta strong { display: block; color: var(--text); font-size: 22px; letter-spacing: -.02em; }

/* Discord-Mockup */
.mock {
  background: #1e1f24; border: 1px solid #2b2d34; border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden; font-family: 'gg sans', var(--font);
}
.mock-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #2b2d34; color: #dbdee1; font-weight: 600; font-size: 14px; }
.mock-head .hash { color: #80848e; font-size: 20px; font-weight: 400; }
.mock-head .pill { margin-left: auto; font-size: 11px; color: var(--accent); background: rgba(255, 255, 255, .1); padding: 3px 8px; border-radius: 999px; }
.mock-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; opacity: 0; transform: translateY(6px); animation: pop .5s ease forwards; }
.msg:nth-child(2) { animation-delay: .5s; }
.msg:nth-child(3) { animation-delay: 1.3s; }
.msg:nth-child(4) { animation-delay: 2.1s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.avatar.user { background: #5865f2; color: #fff; }
.avatar.bot { background: #000 url('/assets/logo.png') center/cover; box-shadow: 0 0 0 1px #2b2b30; }
.msg-name { font-size: 14px; font-weight: 600; color: #f2f3f5; display: flex; align-items: center; gap: 6px; }
.tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.tag.ai { background: #fff; color: #000; box-shadow: 0 0 8px rgba(255,255,255,.5); }
.msg-name time { color: #949ba4; font-weight: 400; font-size: 12px; }
.msg-text { color: #dbdee1; font-size: 14px; line-height: 1.45; margin-top: 2px; }
.msg-text code { background: #2b2d31; padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12.5px; }
.embed-mini { margin-top: 6px; border-left: 4px solid #fff; background: #2b2d31; border-radius: 4px; padding: 10px 12px; font-size: 13px; color: #dbdee1; }
.embed-mini b { color: #fff; }
.chip-row { display: flex; gap: 8px; margin-top: 8px; }
.dchip { background: #4e5058; color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.dchip.red { background: #da373c; }

/* ── Sections ── */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.kicker { color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: '// '; color: var(--faint); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: #3a3a40; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 40px -10px rgba(255, 255, 255, .15); }
.feature .new { float: right; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: #000; background: #fff; padding: 2px 7px; border-radius: 4px; box-shadow: var(--glow); }
.feature .ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: #000; border: 1px solid var(--border-2); color: #fff; margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .25));
}
.feature h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: block; font-family: var(--mono); color: #fff; font-size: 13px; letter-spacing: .1em;
  text-shadow: 0 0 12px rgba(255, 255, 255, .6); margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.provider-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); font-weight: 600; font-size: 14px; background: var(--surface); }

.cta-band {
  text-align: center; padding: 56px 24px; border-radius: 22px;
  background: radial-gradient(600px 200px at 50% 0%, rgba(255, 255, 255, .18), transparent), var(--surface);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; letter-spacing: -.03em; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 13px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ───────────────── Dashboard ───────────────── */
.dash-body { min-height: 100vh; display: flex; flex-direction: column; }
.dash-top { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.dash-top .nav-inner { height: 60px; }
.userbox { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.userbox img { width: 30px; height: 30px; border-radius: 50%; }

.center-card {
  max-width: 440px; margin: 12vh auto; text-align: center; padding: 40px 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.center-card img { width: 84px; height: 84px; border-radius: 18px; margin: 0 auto 18px; mix-blend-mode: screen; }
.center-card h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.02em; }
.center-card p { color: var(--muted); margin: 0 0 24px; }

.page-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 36px 0 22px; }
.page-title h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.page-title p { margin: 4px 0 0; color: var(--muted); }

.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 48px; }
.guild-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.guild-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.guild-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; background: var(--surface-2) center/cover; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.guild-card .meta { min-width: 0; flex: 1; }
.guild-card .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card .sub { font-size: 12.5px; color: var(--muted); }

.layout { display: grid; grid-template-columns: 250px 1fr; flex: 1; }
.sidebar { border-right: 1px solid var(--border); background: var(--bg-2); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side-guild { display: flex; align-items: center; gap: 10px; padding: 8px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.side-guild .guild-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.side-guild .name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.side-guild a { font-size: 12px; color: var(--muted); }
.side-guild a:hover { color: var(--accent); }
.tab-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 2px;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: 600 14px var(--font); cursor: pointer; text-align: left;
}
.tab-btn:hover { background: var(--surface); color: var(--text); }
.tab-btn.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.tab-btn svg { width: 18px; height: 18px; flex: none; }
.side-label { font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; padding: 14px 12px 6px; }

.main { padding: 32px 40px 80px; min-width: 0; }
.panel { display: none; max-width: 980px; }
.panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: 24px; }
.panel-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card .hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.stat .value.accent { color: #fff; text-shadow: 0 0 16px rgba(255, 255, 255, .45); }

/* Formulare */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: #c6d0da; }
.field small { color: var(--faint); font-size: 12px; }
input[type=text], input[type=password], input[type=url], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font: 14px var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a97a6' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=color] { width: 44px; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.color-row { display: flex; gap: 8px; }

.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.provider-opt {
  position: relative; padding: 14px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.provider-opt:hover { border-color: #3a4757; }
.provider-opt input { position: absolute; opacity: 0; }
.provider-opt .pname { font-weight: 700; font-size: 14px; }
.provider-opt .pdesc { font-size: 12px; color: var(--muted); }
.provider-opt.selected { border-color: var(--accent); background: rgba(255, 255, 255, .06); }
.provider-opt.selected::after { content: '✓'; position: absolute; top: 10px; right: 12px; color: var(--accent); font-weight: 800; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.switch:first-of-type { border-top: 0; }
.switch .s-text b { display: block; font-size: 14px; }
.switch .s-text span { font-size: 13px; color: var(--muted); }
.toggle { position: relative; width: 44px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--border-2); border-radius: 999px; cursor: pointer; transition: background .2s; }
.toggle span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::before { transform: translateX(20px); }

.actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-2); }
.badge.ok { color: var(--ok); border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); }
.badge.warn { color: var(--warn); border-color: rgba(245, 165, 36, .3); background: rgba(245, 165, 36, .08); }

/* Wissensbasis */
.kb-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.kb-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kb-search { padding: 12px; border-bottom: 1px solid var(--border); }
.kb-items { max-height: 520px; overflow: auto; }
.kb-item { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.kb-item:hover { background: var(--surface-2); }
.kb-item.active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.kb-item .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-item .p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.kb-editor textarea { min-height: 300px; font-family: var(--font); }

/* Test-Playground */
.playground { display: flex; gap: 10px; }
.playground input { flex: 1; }
.answer {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--border-2); white-space: pre-wrap; font-size: 14px; display: none;
}
.answer.show { display: block; }
.answer .src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.answer.err { border-color: rgba(242, 85, 90, .4); color: #ffb3b5; }

/* Panel-Vorschau (Discord-Stil) */
.panel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.preview-wrap { position: sticky; top: 20px; }
.dc-preview { background: #313338; border-radius: 12px; padding: 18px; font-family: 'gg sans', var(--font); }
.dc-row { display: flex; gap: 14px; }
.dc-row .avatar.bot { width: 40px; height: 40px; }
.dc-name { color: #f2f3f5; font-weight: 600; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.dc-embed { margin-top: 6px; max-width: 432px; background: #2b2d31; border-radius: 4px; border-left: 4px solid #fff; padding: 12px 16px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dc-embed .e-title, .dc-embed .e-desc { grid-column: 1; }
.dc-embed .e-title { color: #fff; font-weight: 700; font-size: 15px; }
.dc-embed .e-desc { color: #dbdee1; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.dc-embed .e-desc strong { color: #fff; }
.dc-embed .e-thumb { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; grid-row: 1 / 3; grid-column: 2; }
.dc-embed .e-image { grid-column: 1 / -1; border-radius: 4px; max-height: 260px; object-fit: cover; width: 100%; }
.dc-embed .e-footer { grid-column: 1 / -1; color: #b5bac1; font-size: 12px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0 16px; height: 32px; border-radius: 4px; font-size: 14px; font-weight: 500; color: #fff; }
.dc-btn.Primary { background: #5865f2; }
.dc-btn.Secondary { background: #4e5058; }
.dc-btn.Success { background: #248046; }
.dc-btn.Danger { background: #da373c; }

/* Toast */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
  padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center;
  animation: fade .25s ease;
}
.toast.ok::before { content: '✓'; color: var(--accent); font-weight: 800; }
.toast.err::before { content: '!'; color: var(--danger); font-weight: 800; }

.loader { width: 22px; height: 22px; border: 2.5px solid var(--border-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid, .panel-layout, .kb-layout { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .side-guild { width: 100%; }
  .side-label { display: none; }
  .tab-btn { width: auto; }
  .main { padding: 24px 20px 60px; }
  .nav-links { display: none; }
  .provider-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .features, .steps, .grid-2, .stats, .provider-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { padding-top: 300px; }
  .eyebrow { font-size: 10px !important; }
  .hide-sm { display: none; }
  .hero-bg { height: 380px; }
}

/* ───────────────── Neue Bereiche ───────────────── */
.circuit { position: relative; }
.circuit::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.showcase h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 14px; }
.showcase p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: #d4d4d8; }
.checks li::before { content: '▸'; color: #fff; text-shadow: 0 0 8px #fff; }

.hq-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 30px 34px; border-radius: 18px; border: 1px solid var(--border-2);
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 60%), var(--surface);
  box-shadow: 0 0 60px -20px rgba(255, 255, 255, .18);
}
.hq-band img { width: 72px; height: 72px; border-radius: 16px; mix-blend-mode: screen; }
.hq-band h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.hq-band p { margin: 0; color: var(--muted); }

/* Dashboard: Diagramm */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.chart .bars { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.chart .bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 0; transition: height .4s ease; }
.chart .bar.ai { background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .35); }
.chart .bar.team { background: #3a3a40; }
.chart .lbl { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* Dashboard: Tabelle */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); color: #d4d4d8; }
.table tr:last-child td { border-bottom: 0; }
.table .stars { color: #fff; letter-spacing: 1px; }
.empty-row { color: var(--muted); text-align: center; padding: 26px !important; }

/* Dashboard: Vorschläge */
.suggestion { border: 1px solid var(--border-2); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; background: var(--bg-2); }
.suggestion .meta { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.tab-btn .count { margin-left: auto; font-size: 11px; background: #fff; color: #000; border-radius: 999px; padding: 0 7px; font-weight: 700; box-shadow: 0 0 10px rgba(255,255,255,.4); }
.import-row { display: flex; gap: 8px; margin-bottom: 14px; }
.import-row input { flex: 1; }

@media (max-width: 980px) {
  .showcase, .hq-band { grid-template-columns: 1fr; text-align: center; }
  .hq-band img { margin: 0 auto; }
}

/* ───────────────── Weitere Bereiche der Startseite ───────────────── */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecase { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.usecase .tag-line { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.usecase h3 { margin: 8px 0 6px; font-size: 17px; }
.usecase p { margin: 0; color: var(--muted); font-size: 14px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--bg-2); }
.compare th.us, .compare td.us { background: rgba(255, 255, 255, .035); color: #fff; }
.compare th.us { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .5); }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); font-weight: 500; }
.yes::before { content: '✓  '; color: #fff; text-shadow: 0 0 8px #fff; font-weight: 700; }
.no::before { content: '–  '; color: var(--faint); }

.security { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-item { padding: 22px; border-left: 2px solid #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.sec-item h3 { margin: 0 0 6px; font-size: 16px; }
.sec-item p { margin: 0; color: var(--muted); font-size: 14px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: #fff; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

.legal { max-width: 760px; margin: 0 auto; padding: 60px 0 80px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; }
.legal h2 { font-size: 19px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { border: 1px dashed var(--warn); color: var(--warn); padding: 14px 16px; border-radius: var(--radius); font-size: 14px; }
.legal mark { background: rgba(245, 165, 36, .15); color: var(--warn); padding: 0 4px; border-radius: 4px; }

@media (max-width: 980px) {
  .usecases, .security { grid-template-columns: 1fr 1fr; }
  .compare th, .compare td { padding: 12px; font-size: 13.5px; }
}
@media (max-width: 620px) {
  .usecases, .security { grid-template-columns: 1fr; }
}

/* ───────────────── Animationen ───────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero-bg { animation: heroIn 1.4s cubic-bezier(.2, .7, .2, 1) backwards, pulse 6s ease-in-out 1.4s infinite; }
.hero .container > * { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .container > *:nth-child(1) { animation-delay: .25s; }
.hero .container > *:nth-child(2) { animation-delay: .38s; }
.hero .container > *:nth-child(3) { animation-delay: .5s; }
.hero .container > *:nth-child(4) { animation-delay: .62s; }
.hero .container > *:nth-child(5) { animation-delay: .74s; }
.hero .container > *:nth-child(6) { animation-delay: .86s; }

/* Glanz über primären Buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn { transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s; }
.btn:hover { transform: translateY(-1px); }

/* Licht unter dem Mauszeiger */
.feature, .usecase, .service, .guild-card, .sec-item, .stat { position: relative; isolation: isolate; }
.feature::after, .usecase::after, .service::after, .guild-card::after, .sec-item::after, .stat::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%);
}
.feature:hover::after, .usecase:hover::after, .service:hover::after, .guild-card:hover::after, .sec-item:hover::after, .stat:hover::after { opacity: 1; }

.nav { transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--border-2); background: rgba(0, 0, 0, .82); }
.nav-links a.active { color: #fff; }

.mock .msg { animation-play-state: paused; }
.mock.in .msg, .reveal.in .msg { animation-play-state: running; }

.faq details p { animation: fadeUp .4s ease both; }
.chart .bar { animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────────────── Status-Seite ───────────────── */
.status-page { padding: 56px 0 80px; max-width: 980px; }
.status-head { text-align: center; margin-bottom: 28px; }
.status-hero {
  display: inline-flex; align-items: center; gap: 20px; text-align: left; margin-top: 18px;
  padding: 22px 30px; border-radius: 18px; border: 1px solid var(--border-2); background: var(--surface);
}
.status-hero h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.status-hero p { margin: 4px 0 0; color: var(--muted); }
.status-orb { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--faint); position: relative; }
.status-orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.status-hero[data-state='ok'] .status-orb { background: var(--ok); color: var(--ok); box-shadow: 0 0 18px var(--ok); }
.status-hero[data-state='degraded'] .status-orb, .status-hero[data-state='partial'] .status-orb { background: var(--warn); color: var(--warn); box-shadow: 0 0 18px var(--warn); }
.status-hero[data-state='down'] .status-orb { background: var(--danger); color: var(--danger); box-shadow: 0 0 18px var(--danger); }
.status-hero[data-state='ok'] { border-color: rgba(74, 222, 128, .3); }
.status-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.status-stats .value { font-size: 24px; }
.services { display: grid; gap: 12px; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.service-name { font-weight: 700; font-size: 16px; }
.service-desc { color: var(--muted); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip.ok { color: var(--ok); border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .07); }
.chip.degraded { color: var(--warn); border-color: rgba(245, 165, 36, .3); background: rgba(245, 165, 36, .07); }
.chip.down { color: var(--danger); border-color: rgba(242, 85, 90, .3); background: rgba(242, 85, 90, .07); }
.bars { display: flex; gap: 3px; height: 34px; }
.sbar { flex: 1; border-radius: 3px; background: var(--surface-2); transform-origin: bottom; animation: grow .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--j) * 18ms); transition: transform .15s, filter .15s; }
.sbar:hover { transform: scaleY(1.12); filter: brightness(1.3); }
.sbar.ok { background: var(--ok); opacity: .85; }
.sbar.degraded { background: var(--warn); }
.sbar.down { background: var(--danger); }
.sbar.none { background: #1d1d20; }
.service-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.status-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lg.ok { background: var(--ok); } .lg.degraded { background: var(--warn); } .lg.down { background: var(--danger); } .lg.none { background: #2b2b30; }

/* ───────────────── Dashboard: Serverauswahl ───────────────── */
.guild-toolbar { display: flex; gap: 10px; align-items: center; }
.guild-toolbar input { width: 260px; }
.guild-section { margin-bottom: 36px; }
.guild-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.guild-section-head h2 { margin: 0; font-size: 17px; }
.guild-section-head .count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.guild-section-head p { margin: 0 0 0 auto; color: var(--muted); font-size: 13px; }
.active-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.guild-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
.guild-card .gc-top { display: flex; gap: 14px; align-items: center; }
.guild-card .guild-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 16px; }
.guild-card .name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; line-height: 1.3; }
.gc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gc-stats div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.gc-stats b { display: block; font-size: 19px; letter-spacing: -.02em; }
.gc-stats span { font-size: 11.5px; color: var(--muted); }
.gc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.gc-foot .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-card:hover { border-color: #3a3a40; box-shadow: 0 0 40px -14px rgba(255, 255, 255, .2); }
.invite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.guild-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); transition: border-color .2s, background .2s; }
.guild-row:hover { border-color: var(--border-2); background: var(--surface); }
.guild-row .guild-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.guild-row .name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }

/* Dashboard: Kopfzeile im Server-Bereich */
.guild-header { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.guild-header .guild-icon { width: 52px; height: 52px; border-radius: 15px; }
.guild-header h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.guild-header .gc-badges { margin-top: 4px; }
.guild-header .actions { margin: 0 0 0 auto; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 4px 0 16px; }
.progress span { display: block; height: 100%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .5); border-radius: inherit; transition: width .8s cubic-bezier(.2, .7, .2, 1); }

/* KI-Modell-Auswahl */
.model-row { display: flex; gap: 8px; }
.model-row select { flex: 1; }
.model-hint { font-size: 12px; color: var(--faint); min-height: 18px; }
.model-hint.err { color: var(--danger); }
.model-hint.warn { color: var(--warn); }
.spin { display: inline-block; animation: spin .8s linear infinite; }

@media (max-width: 760px) {
  .status-stats { grid-template-columns: 1fr 1fr; }
  .guild-toolbar { width: 100%; }
  .guild-toolbar input { flex: 1; width: auto; }
  .page-title { flex-wrap: wrap; }
}
.status-head .kicker { display: block; }

/* ───────────────── Stichpunkt-Editor ───────────────── */
.facts { display: flex; flex-direction: column; gap: 6px; }
.fact { display: flex; align-items: flex-start; gap: 10px; padding: 4px 6px 4px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg-2); transition: border-color .15s, box-shadow .15s; animation: factIn .25s ease both; }
.fact:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
@keyframes factIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fact .fdot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); flex: none; margin-top: 15px; }
.fact textarea { flex: 1; min-height: 0; height: 34px; resize: none; overflow: hidden; border: 0; background: transparent; padding: 7px 0; box-shadow: none !important; line-height: 1.45; }
.fact .fdel { width: 28px; height: 28px; margin-top: 3px; border: 0; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; font-size: 17px; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.fact:hover .fdel, .fact:focus-within .fdel { opacity: 1; }
.fact .fdel:hover { background: rgba(242, 85, 90, .12); color: var(--danger); }
.add-fact { align-self: flex-start; margin-top: 8px; }
.count-pill { margin-left: 6px; font-family: var(--mono); font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-2); }
.kb-preview { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.kb-preview h3 { margin: 0 0 4px; font-size: 15px; }
.kb-editor textarea { min-height: 0; }
.answer .typing::after { content: '▍'; animation: blink 1s steps(1) infinite; }

/* Sprache */
.lang-grid { grid-template-columns: repeat(2, minmax(0, 260px)); }
.lang-grid .flag { font-size: 22px; margin-bottom: 4px; display: block; }
.lang-preview { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-radius: 10px; background: #313338; font-size: 13px; color: #dbdee1; }
.lang-preview .dchip { font-size: 12.5px; }
.lang-preview .lbl { color: #949ba4; font-size: 12px; margin-right: 4px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 8px; }
.lang-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; font-weight: 600; font-size: 13.5px; user-select: none; transition: border-color .15s, background .15s, box-shadow .2s; }
.lang-chip input { display: none; }
.lang-chip:hover { border-color: #3a3a40; }
.lang-chip.on { border-color: #fff; background: rgba(255, 255, 255, .06); box-shadow: 0 0 14px -4px rgba(255, 255, 255, .4); }
.lang-chip .bot-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 620px) { .lang-grid { grid-template-columns: 1fr 1fr; } }

/* ───────────────── Wartungsseite ───────────────── */
.mt-body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.mt-bg {
  position: fixed; inset: 0; z-index: -1;
  background: #000 url('/assets/hero.svg') center 18% / auto 70vh no-repeat;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 85%); mask-image: linear-gradient(#000 40%, transparent 85%);
  opacity: .9; animation: heroIn 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.mt-main { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: min(46vh, 420px) 24px 40px; max-width: 820px; margin: 0 auto; }
.mt-main h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.04em; margin: 18px 0 16px; font-weight: 700; }
.mt-main h1 .hl { color: #fff; text-shadow: 0 0 22px rgba(255, 255, 255, .55), 0 0 60px rgba(255, 255, 255, .25); }
.mt-main .lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 30px; }
.mt-main .lead b { color: #fff; font-weight: 600; }
.mt-cta .btn-lg { height: 58px; padding: 0 30px; font-size: 17px; box-shadow: 0 0 40px rgba(255, 255, 255, .3); }
.mt-note { color: var(--faint); font-size: 14px; margin: 14px 0 34px; }
.mt-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mt-points li { padding: 9px 16px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 13.5px; color: #d4d4d8; background: rgba(255, 255, 255, .02); }
.mt-denied { margin-top: 28px; padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(245, 165, 36, .35); color: var(--warn); background: rgba(245, 165, 36, .06); font-size: 14px; }
.mt-denied a { color: #fff; text-decoration: underline; }
.mt-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
.mt-footer a:hover { color: var(--text); }
.mt-admin { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; }
.mt-admin:hover { border-color: var(--border-2); }
.mt-in { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@media (max-width: 700px) { .mt-main { padding-top: 34vh; } .mt-bg { background-size: auto 46vh; background-position: center 10%; } }

/* Cookie-Hinweis */
.cookie-notice {
  position: fixed; left: 20px; bottom: 20px; z-index: 200; max-width: 520px; display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 14px; background: rgba(14, 14, 16, .96); border: 1px solid var(--border-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7); font-size: 13.5px; color: var(--muted); animation: fadeUp .5s ease both; transition: opacity .3s, transform .3s;
}
.cookie-notice b { color: #fff; margin-right: 4px; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice.out { opacity: 0; transform: translateY(10px); }
@media (max-width: 620px) { .cookie-notice { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; } }

/* Admin-Leiste im Wartungsmodus */
.admin-bar { position: sticky; top: 0; z-index: 120; display: flex; justify-content: center; gap: 16px; align-items: center; padding: 8px 16px; background: #f5a524; color: #000; font-size: 13px; font-weight: 600; }
.admin-bar i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #000; margin-right: 8px; vertical-align: 1px; animation: blink 1.2s steps(1) infinite; }
.admin-bar a { text-decoration: underline; }
.has-admin-bar .nav { top: 36px; }

/* Rechtsseiten */
.legal h3 { font-size: 16px; margin-top: 22px; color: #fff; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.legal th { color: #fff; font-weight: 600; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.legal a { color: #fff; text-decoration: underline; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 13px; text-decoration: none; color: var(--muted); }
.legal-nav a.active { color: #000; background: #fff; border-color: #fff; }

/* Team Insights */
.tab-btn .count.live { background: var(--ok); color: #04210f; box-shadow: 0 0 10px rgba(74,222,128,.5); }
.ins-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.ins-filter { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); }
.ins-filter button { flex: 1; background: none; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 0; border-radius: 8px; cursor: pointer; }
.ins-filter button:hover { color: var(--text); }
.ins-filter button.active { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.ins-items { max-height: 640px; }
.ins-item .top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.ins-item .top .t { flex: 1; min-width: 0; }
.ins-item .m { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.done-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.ins-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; }
.ins-head h3 { font-size: 20px !important; letter-spacing: -.01em; margin-bottom: 8px !important; }
.ins-head .gc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ins-note { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ins-note.wide { grid-column: 1 / -1; }
.ins-note h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ins-note p { margin: 0; line-height: 1.55; }
.ins-note ul, .ins-note ol { margin: 0; padding-left: 18px; line-height: 1.6; }
.ins-note .none { color: var(--faint); }
.ins-learn { border-color: rgba(255,255,255,.18); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); }
.ins-learn textarea { min-height: 0; font-family: var(--font); }
.ins-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 14px; }
.ins-status .spin { width: 14px; height: 14px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; padding: 4px 2px; }
.chat-msg { display: flex; gap: 10px; max-width: 86%; }
.chat-msg .avatar { width: 30px; height: 30px; font-size: 11px; flex: none; }
.chat-msg .bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.chat-msg .who { font-size: 12px; font-weight: 700; margin-bottom: 2px; display: flex; gap: 8px; align-items: baseline; }
.chat-msg .who time { font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--faint); }
.chat-msg .txt { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; }
.chat-msg.staff { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.staff .bubble { background: #fff; color: #000; border-color: #fff; }
.chat-msg.staff .who time { color: #666; }
.chat-msg.bot .bubble { background: transparent; border-style: dashed; }
.chat-ctx { border: 1px dashed var(--border-2); border-radius: 12px; padding: 4px 12px; margin-bottom: 6px; }
.chat-ctx summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 0; }
.chat-ctx .chat { opacity: .75; padding-bottom: 10px; }
.chat-sep { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin: 4px 0; }
@media (max-width: 1100px) { .ins-layout { grid-template-columns: 1fr; } .ins-grid { grid-template-columns: 1fr; } }
.avatar.staff { background: #fff; color: #000; }
.has-admin-bar .sidebar { top: 36px; height: calc(100vh - 36px); }

/* ───────────────── Startseite: Playground ───────────────── */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pg-frame { position: relative; border-radius: 20px; padding: 1px; isolation: isolate;
  background: conic-gradient(from var(--spin), rgba(255,255,255,.08), rgba(255,255,255,.55), rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 60%, rgba(255,255,255,.4) 75%, rgba(255,255,255,.08));
  animation: spinBorder 8s linear infinite; }
.pg-frame::before { content: ''; position: absolute; inset: -40px; z-index: -1; border-radius: 60px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent); filter: blur(10px); }
@keyframes spinBorder { to { --spin: 360deg; } }
.pg { background: #0a0a0b; border-radius: 19px; overflow: hidden; }
.pg.thinking + * {}
.pg-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #070708; }
.pg-dots { display: flex; gap: 6px; }
.pg-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.pg-dots i:nth-child(1) { background: #ff5f57; } .pg-dots i:nth-child(2) { background: #febc2e; } .pg-dots i:nth-child(3) { background: #28c840; }
.pg-title { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .06em; }
.pg-mode { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pg-mode.on { color: var(--ok); text-shadow: 0 0 10px rgba(74,222,128,.5); }
.pg-body { display: grid; grid-template-columns: 400px 1fr; height: 660px; }
.pg-kb { padding: 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; min-height: 0; background: linear-gradient(180deg, #0c0c0e, #08080a); }
.pg-step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pg-step span { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #000; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 14px rgba(255,255,255,.45); }
.pg-templates { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-templates button { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: all .2s; }
.pg-templates button:hover { color: #fff; border-color: #444; }
.pg-templates button.active { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 14px rgba(255,255,255,.3); }
.pg-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; display: flex; align-items: center; }
.pg-kb input[type=text] { height: 38px; padding: 0 12px; font-size: 14px; }
.pg-facts { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 60px; overflow: auto; padding-right: 2px; }
.pg-fact { display: flex; align-items: center; gap: 8px; border-radius: 10px; position: relative; transition: background .3s; }
.pg-fact { align-items: flex-start !important; }
.pg-fact .bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; margin: 15px 0 0 4px; transition: all .3s; }
.pg-fact textarea { flex: 1; min-height: 0; resize: none; overflow: hidden; font-size: 13.5px; line-height: 1.45; background: transparent; border-color: transparent; padding: 7px 8px; border-radius: 8px; }
.pg-fact textarea:hover { border-color: var(--border-2); }
.pg-fact textarea:focus { background: var(--bg-2); }
.pg-fact .x { margin-top: 6px; background: none; border: 0; color: var(--faint); font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .2s; padding: 0 4px; }
.pg-fact:hover .x, .pg-fact:focus-within .x { opacity: 1; }
.pg-fact.used { animation: factUsed 2.4s ease; }
.pg-fact.used .bullet { background: #fff; box-shadow: 0 0 10px #fff; }
@keyframes factUsed { 0% { background: rgba(255,255,255,0); } 12% { background: rgba(255,255,255,.14); box-shadow: inset 2px 0 0 #fff; } 100% { background: rgba(255,255,255,0); } }
.pg-hint { margin: 0; font-size: 12px; color: var(--faint); }
#pgAdd { align-self: flex-start; }
.pg-chat { display: flex; flex-direction: column; background: #313338; min-width: 0; min-height: 0; }
.pg-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #26272b; color: #f2f3f5; font-weight: 600; font-size: 14px; }
.pg-chat-head .hash { color: #80848e; font-size: 20px; font-weight: 400; }
.pg-chat-head .pill, .mock-head .pill { margin-left: auto; font-size: 11px; color: var(--accent); background: rgba(255,255,255,.1); padding: 3px 9px; border-radius: 999px; transition: all .3s; }
.pill.warn { color: #000 !important; background: #f5a524 !important; }
.pill.read { color: #04210f !important; background: var(--ok) !important; box-shadow: 0 0 12px rgba(74,222,128,.5); }
.pg-msgs { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.pg-msg { display: flex; gap: 12px; }
.pg-msg.in { animation: msgIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pg-msg .msg-text { overflow-wrap: anywhere; }
.pg-msg .msg-text.typing::after, .learn-body .typing::after { content: '▍'; margin-left: 1px; animation: blink 1s steps(1) infinite; color: #fff; }
.embed-mini.warn { border-left-color: #f5a524; }
.pg-soft { display: block; margin-top: 6px; color: #b5bac1; font-size: 12.5px; }
.pg-src { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: #b5bac1; background: #2b2d31; border: 1px solid #3a3c42; border-radius: 6px; padding: 2px 8px; }
.pg-src::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.pg-note { width: 100%; text-align: center; font-family: var(--mono); font-size: 11px; color: #a0a4ab; letter-spacing: .03em; }
.pg-typing { display: inline-flex; gap: 4px; padding: 10px 2px 4px; }
.pg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5bac1; animation: dot 1.2s infinite ease-in-out; }
.pg-typing i:nth-child(2) { animation-delay: .15s; } .pg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.pg-q { padding: 10px 16px 0; border-top: 1px solid #26272b; }
.pg-q .pg-step { font-size: 13px; color: #dbdee1; }
.pg-q .pg-step span { width: 18px; height: 18px; font-size: 11px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 2px; }
.pg-chip { display: inline-flex; align-items: center; background: #2b2d31; border: 1px solid #3f4147; border-radius: 999px; overflow: hidden; transition: all .2s; }
.pg-chip:hover { border-color: #6d6f78; transform: translateY(-1px); }
.pg-chip button { background: none; border: 0; color: #dbdee1; font: inherit; font-size: 12.5px; cursor: pointer; }
.pg-chip .ask { padding: 5px 4px 5px 12px; }
.pg-chip .rm { padding: 5px 9px 5px 4px; color: #80848e; opacity: 0; width: 0; padding-right: 8px; transition: opacity .2s; }
.pg-chip:hover .rm { opacity: 1; width: auto; }
.pg-chip.add { border-style: dashed; }
.pg-chip .new { padding: 5px 12px; color: #fff; font-weight: 600; }
.pg-chip-input { background: transparent !important; border: 0 !important; color: #fff; height: 28px !important; width: 260px; padding: 0 12px !important; box-shadow: none !important; font-size: 12.5px !important; }
.pg-input { display: flex; gap: 8px; padding: 12px 16px 16px; }
.pg-input input { flex: 1; background: #383a40 !important; border: 1px solid transparent !important; color: #fff; height: 44px; border-radius: 10px !important; padding: 0 14px; font-size: 14.5px; }
.pg-input input:focus { border-color: rgba(255,255,255,.4) !important; }
.pg-input .btn { height: 44px; width: 48px; padding: 0; justify-content: center; }
.pg-foot { text-align: center; color: var(--faint); font-size: 13px; margin: 18px 0 0; }
.pg.thinking .pg-chat-head .pill { animation: pulse 1s ease-in-out infinite; }

/* ───────────────── Startseite: Lern-Demo ───────────────── */
.learn { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.learn-text h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0; }
.learn-text > p { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.learn-steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: ls; position: relative; }
.learn-steps::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--border-2); }
.learn-steps li { position: relative; padding: 8px 0 14px 44px; cursor: pointer; transition: opacity .4s; opacity: .45; }
.learn-steps li::before { counter-increment: ls; content: counter(ls); position: absolute; left: 0; top: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-2); font-family: var(--mono); font-size: 12px; color: var(--muted); transition: all .4s; }
.learn-steps li b { display: block; font-size: 15.5px; }
.learn-steps li span { color: var(--muted); font-size: 14px; }
.learn-steps li.done { opacity: .75; }
.learn-steps li.done::before { content: '✓'; background: #1a1a1d; color: #fff; }
.learn-steps li.active { opacity: 1; }
.learn-steps li.active::before { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 0 20px rgba(255,255,255,.5); }
.learn-mock { min-height: 540px; display: flex; flex-direction: column; }
.learn-body { height: 480px; overflow-y: auto; scroll-behavior: smooth; }
.learn-body .msg { opacity: 1; transform: none; animation: msgIn .45s cubic-bezier(.2,.8,.2,1) both !important; animation-delay: 0s !important; animation-play-state: running !important; }
.learn-body .msg.wide { display: block; }
.avatar.staff { background: #fff; color: #000; }
.tag.staff { background: #f5a524; color: #000; }
.insight-card { border: 1px solid rgba(74,222,128,.35); background: linear-gradient(180deg, rgba(74,222,128,.08), rgba(74,222,128,.02)); border-radius: 12px; padding: 14px 16px; color: #dbdee1; position: relative; overflow: hidden; }
.insight-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); transform: translateX(-100%); animation: sweep 2.2s ease .3s; pointer-events: none; }
@keyframes sweep { to { transform: translateX(100%); } }
.ic-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.ic-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: livePulse 1.8s infinite; }
.ic-title { font-weight: 700; color: #fff; margin: 6px 0 4px; }
.insight-card ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.insight-card li { animation: msgIn .4s both; }
.insight-card li:nth-child(2) { animation-delay: .25s; }
.ic-btn { animation: glowPulse 1.6s ease-in-out infinite; }
.insight-card.added .ic-btn { animation: none; background: var(--ok) !important; color: #04210f !important; opacity: 1 !important; box-shadow: 0 0 18px rgba(74,222,128,.45); }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 0 26px rgba(255,255,255,.55); } }
.day-sep { display: flex; align-items: center; gap: 10px; color: #949ba4; font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: #3f4147; }

/* ───────────────── Weitere Animationen ───────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(255,255,255,.3), #fff); box-shadow: 0 0 12px rgba(255,255,255,.7); z-index: 200; pointer-events: none; }
.has-admin-bar .scroll-progress { top: 36px; }
.hero h1 .hl { background: linear-gradient(100deg, #fff 30%, #9a9aa2 45%, #fff 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 5s ease-in-out 1.6s infinite; filter: drop-shadow(0 0 18px rgba(255,255,255,.35)); text-shadow: none; }
@keyframes shimmer { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: -50% 0; } }
.hero-bg { will-change: transform; }
.feature, .usecase, .sec-item { transform-style: preserve-3d; }
.tilt { transition: transform .12s ease-out, border-color .2s, box-shadow .2s !important; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
.steps { position: relative; }
.steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 39px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .3s; z-index: -1; }
.steps.drawn::before { transform: scaleX(1); }
.section-head h2 { background: linear-gradient(180deg, #fff 40%, #a1a1aa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: rgba(255,255,255,.03); }
.reveal.in .compare tbody tr, .compare.in tbody tr { animation: msgIn .5s both; }
.compare tbody tr:nth-child(2) { animation-delay: .06s; } .compare tbody tr:nth-child(3) { animation-delay: .12s; } .compare tbody tr:nth-child(4) { animation-delay: .18s; }
.compare tbody tr:nth-child(5) { animation-delay: .24s; } .compare tbody tr:nth-child(6) { animation-delay: .3s; } .compare tbody tr:nth-child(7) { animation-delay: .36s; } .compare tbody tr:nth-child(8) { animation-delay: .42s; }
.hero-meta strong { font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .pg-body { grid-template-columns: 1fr; height: auto; }
  .pg-kb { border-right: 0; border-bottom: 1px solid var(--border); }
  .pg-facts { max-height: 260px; flex: none; }
  .pg-chat { height: 600px; }
  .learn { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .pg-chip-input { width: 200px; }
  .learn-body { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .pg-frame { animation: none; }
}
@media (max-width: 700px) { .admin-bar { position: relative; font-size: 11.5px; padding: 6px 12px; } .has-admin-bar .nav { top: 0; } .has-admin-bar .scroll-progress { top: 0; } .has-admin-bar .sidebar { top: 0; height: 100vh; } }
