/* artillica.com — Artillica (Ink + Cyan, ruhige Typo) × KI-Empfang (Aufbau, Emerald). */
:root {
  --ink: #07090b;
  --ink-2: #0c1216;
  --panel: #101b20;
  --line-dark: rgba(232, 236, 235, 0.09);
  --paper: #ffffff;
  --paper-2: #f4f7f6;
  --line: #e7ebea;
  --text: #0a0a0a;
  --text-soft: #e8eceb;
  --muted: #5f6b69;
  --muted-dark: #94a3a1;
  --emerald: #10b981;
  --emerald-strong: #059669;
  --cyan: #63e6f4;
  --accent: linear-gradient(100deg, var(--emerald) 0%, #2dd4bf 55%, var(--cyan) 100%);
  --radius: 14px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 11, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  display: inline-flex; align-items: baseline; gap: .7em; text-decoration: none;
  font-size: 12px; line-height: 1; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
}
.brand picture { display: flex; }
/* Bild ist oben/unten randlos → Höhe = Versalhöhe der Schrift, Unterkante auf der Grundlinie. */
.brand__mark { display: block; width: auto; height: .71em; height: 1cap; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.03);
}
.lang a {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-decoration: none;
  padding: 5px 10px; border-radius: 999px; color: var(--muted-dark);
}
.lang a[aria-current="true"] { background: var(--text-soft); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #10262a 0%, var(--ink-2) 45%, var(--ink) 100%);
  color: var(--text-soft);
  padding: 88px 0 96px;
}
.hero__glow {
  position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(16,185,129,.16), transparent 62%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02;
}
.hero h1 i {
  font-style: italic; font-weight: 300;
  background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero__body { margin-top: 26px; max-width: 30rem; font-size: 17px; color: var(--muted-dark); line-height: 1.6; }

/* ---------- Agent / Orb ---------- */
.agent { display: flex; flex-direction: column; align-items: center; text-align: center; }
.agent__stage { position: relative; width: min(420px, 86vw); aspect-ratio: 1; }
.agent__orb { position: absolute; inset: 0; width: 100%; height: 100%; }
.agent__btn {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--text-soft); color: var(--ink);
  box-shadow: 0 10px 40px -8px rgba(99, 230, 244, .55), 0 0 0 6px rgba(232, 236, 235, .06);
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease;
}
.agent__btn:hover { transform: translateX(-50%) scale(1.06); }
.agent__btn:active { transform: translateX(-50%) scale(.96); }
.agent__btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.agent__btn .icon { width: 26px; height: 26px; }
.agent__btn-icon { display: grid; place-items: center; }
.agent__btn-icon--stop, .agent__spinner { display: none; }
.agent[data-state="live"] .agent__btn { background: #ef4444; color: #fff; box-shadow: 0 10px 40px -8px rgba(239, 68, 68, .6); }
.agent[data-state="live"] .agent__btn-icon--start { display: none; }
.agent[data-state="live"] .agent__btn-icon--stop { display: grid; }
.agent[data-state="connecting"] .agent__btn { cursor: wait; background: rgba(232, 236, 235, .16); color: var(--text-soft); }
.agent[data-state="connecting"] .agent__btn-icon--start { display: none; }
.agent[data-state="connecting"] .agent__spinner {
  display: block; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(232,236,235,.25); border-top-color: var(--text-soft);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agent__status { margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--text-soft); }
.agent__caption { margin-top: 8px; min-height: 2.8em; max-width: 26rem; font-size: 14px; color: var(--muted-dark); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent__error { font-size: 13px; color: #fca5a5; max-width: 26rem; }
.agent__error:empty { display: none; }
.agent__consent { margin-top: 14px; font-size: 11.5px; color: #6f7d7b; max-width: 24rem; }

/* ---------- About ---------- */
.about { background: var(--paper-2); padding-top: 64px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.about__img { display: block; width: 64%; justify-self: center; }
.about__img img { width: 100%; height: auto; }
.about__copy { padding-bottom: 80px; max-width: 30rem; font-size: 18px; color: #3d4846; line-height: 1.65; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: #8a9593; font-size: 13px; letter-spacing: .04em; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .agent { order: -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 64px; }
  .about__grid { grid-template-columns: 1fr; gap: 8px; }
  .about__copy { padding-bottom: 0; order: -1; font-size: 17px; }
  .about__img { width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agent__btn { transition: none; }
}
