/* Urban AI — Landing in der claude.ai-Anatomie:
   links Serif-Claim + Login-Karte, rechts grosses Live-Produkt-Panel. */

:root {
  --bg: #262624;
  --bg-deep: #1f1e1c;
  --panel: #2d2c29;
  --panel-2: #34332f;
  --line: #3d3c37;
  --line-strong: #4a4842;
  --text: #eceae4;
  --muted: #b8b5ac;
  --subtle: #8b887f;
  --cream: #f0eee7;
  --cream-ink: #262624;
  --accent: #4cc8d9;
  --danger: #ff9d8a;

  --serif: "Iowan Old Style", "Palatino", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  min-height: 42px;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid, .btn-cream {
  background: var(--cream);
  color: var(--cream-ink);
  border: 1px solid var(--cream);
}
.btn-solid:hover, .btn-cream:hover { opacity: 0.9; }
.btn-card {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
}
.btn-card:hover { border-color: var(--accent); }

/* ── Kopfzeile (Logo · Nav · CTAs) ────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-u {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
}
.top-mid { display: flex; gap: 26px; }
.top-mid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}
.top-mid a:hover { color: var(--text); }
.top-cta { display: flex; gap: 10px; }

/* ── Landing-Grid ─────────────────────────────────────────────────── */
.landing {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) minmax(420px, 7fr);
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 56px;
  min-height: calc(100vh - 150px);
}

/* Links: Claim + Login-Karte */
.pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.claim {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
}
.claim-sub {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 34px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
#email-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 16px;
  padding: 12px 14px;
  min-height: 46px;
}
#email-input::placeholder { color: var(--subtle); }
#email-input:focus { border-color: var(--accent); outline: none; }
.legal {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.5;
}
.legal a { color: var(--muted); }
.legal a:hover { color: var(--accent); }

.below-card {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.below-card:hover { color: var(--accent); border-color: var(--accent); }

/* Rechts: Hero-Video */
.showcase { min-width: 0; }
.video-card {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  height: min(640px, calc(100vh - 190px));
  min-height: 460px;
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Live-Demo-Sektion unter dem Hero */
.demo-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  scroll-margin-top: 24px;
}
.demo-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 22px;
}
.panel {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: min(640px, calc(100vh - 190px));
  min-height: 480px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
}
.panel-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
}
.panel-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--subtle);
}
.status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--subtle); }
.status-dot.is-online { background: var(--accent); }
.status-dot.is-offline { background: var(--danger); }

.thread {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  scrollbar-color: var(--line-strong) transparent;
}
.thread::-webkit-scrollbar { width: 10px; }
.thread::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }

.turn { margin: 0 0 16px; }
.turn-user { display: flex; justify-content: flex-end; }
.turn-user .bubble {
  max-width: 85%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-bottom-right-radius: 8px;
  padding: 10px 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.turn-ai { display: flex; gap: 11px; }
.turn-ai .ai-mark {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 14px;
  padding-top: 4px;
}
.turn-ai .ai-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 15px;
}
.turn-ai.is-error .ai-text { color: var(--danger); }

.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing span {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--subtle);
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none; opacity: 0.7; }
}

.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.chip {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

/* Composer (im Panel) */
.composer-card {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 12px 14px 10px;
  flex-shrink: 0;
}
.composer-card textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  max-height: 120px;
}
.composer-card textarea::placeholder { color: var(--subtle); }
.composer-card textarea:focus { outline: none; }
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.composer-model {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--subtle);
  letter-spacing: 0.04em;
}
.send-round {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: var(--cream);
  color: var(--cream-ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.send-round:hover { opacity: 0.9; }
.send-round:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 22px;
  font-size: 12px;
  color: var(--subtle);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--subtle); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .top-mid { display: none; }
}
@media (max-width: 880px) {
  .landing {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 18px 40px;
  }
  .pitch { order: 0; }
  .showcase { order: 1; }
  .panel { height: 540px; min-height: 460px; }
  .video-card { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 70vh; }
  .demo-section { padding: 16px 18px 48px; }
  .top { padding: 12px 16px; }
  .top-cta .btn-outline { display: none; }
  .foot { justify-content: center; text-align: center; padding: 0 16px 18px; }
}
