/* Pohmer KI - Basis Styles */
/* Typography & Variables */
:root {
  --bg: #0b1020;
  --surface: #0f172a;
  --elev: #111827;
  --text: #e5e7eb;
  --muted: #a6adbb;
  --brand: #60a5fa;
  --brand-strong: #3b82f6;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --border: #1f2937;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  --container: 1200px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8fafc;
  --elev: #f1f5f9;
  --text: #0b1020;
  --muted: #475569;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a.active {
  background: var(--elev);
  border: 1px solid var(--border);
}
.nav-toggle, .theme-toggle {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  background: var(--elev);
  color: var(--text);
  transition: transform .05s ease, background .2s ease, border .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 92%, #fff 8%), var(--brand-strong));
  border-color: color-mix(in oklab, var(--brand-strong) 70%, #000 30%);
  color: white;
}
.btn.full { width: 100%; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 48px 20px 24px;
}
.hero h1 {
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.15;
  margin: 10px 0 12px;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 10px; }
.trust { display: flex; gap: 14px; flex-wrap: wrap; padding: 0; margin: 16px 0 0; list-style: none; color: var(--muted); }
.hero-visual { display: grid; place-items: center; }
.glass-card {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.glass-line {
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--brand) 25%, transparent), transparent),
    linear-gradient(180deg, var(--elev), color-mix(in oklab, var(--elev) 60%, transparent));
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.caption { color: var(--muted); font-size: 14px; margin: 8px 2px 0; }

/* Sections */
.section { padding: 24px 0 10px; }
.section.alt {
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 { font-size: 26px; margin: 8px 0 16px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.link { color: var(--brand); font-weight: 600; }

/* Cards & Grid */
.grid { display: grid; gap: 14px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--border);
  background: var(--elev);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, var(--shadow);
}
.card h3 { margin: 4px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.card.news time { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }

/* Footer */
.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 16px;
  padding: 18px 20px;
}
.site-footer nav { display: grid; gap: 6px; }
.site-footer h4 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.fineprint {
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 18px;
  color: var(--muted);
}

/* Layout utilities */
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.center { display: grid; place-items: center; }
.muted { color: var(--muted); }

/* Forms */
label { font-weight: 600; font-size: 14px; }
input[type="text"],
input[type="email"],
textarea,
select,
input[type="range"] {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input[type="range"] { padding: 6px; }
.helper { font-size: 12px; color: var(--muted); }

/* Playground */
.playground {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
}
.panel {
  border: 1px solid var(--border);
  background: var(--elev);
  border-radius: 14px;
  padding: 14px;
}
.messages {
  display: grid; gap: 10px;
  max-height: 54vh; overflow: auto; padding-right: 6px;
}
.msg {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px; padding: 10px 12px;
}
.msg.user { border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }
.msg.assistant { border-color: color-mix(in oklab, var(--ok) 30%, var(--border)); }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .playground { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: grid; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}


