/* AIOS - baza wiedzy (GEO). Wspolny styl podstron, spojny z landingiem. */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --border: #222222;
  --border-hover: #333333;
  --text: #e8e4de;
  --text-muted: #8a8578;
  --text-dim: #5a574f;
  --gold: #c5a55a;
  --gold-glow: rgba(197, 165, 90, 0.08);
  --cream: #f5f0e8;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* NAV (jak na landingu) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0;
  background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .container { max-width: 960px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--text-muted); letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-cta { padding: 8px 20px; background: var(--gold); color: var(--bg); font-weight: 600; font-size: 13px; border-radius: 6px; }
.nav-cta:hover { filter: brightness(1.1); opacity: 1; }

/* ARTYKUL */
.kb { padding: 140px 0 80px; }
.kb-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.kb-title { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 400; line-height: 1.12; color: var(--cream); margin-bottom: 12px; }
.kb-title em { color: var(--gold); font-style: italic; }
.kb-lead { font-size: 18px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }

article { margin-top: 40px; }
article h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: var(--cream); margin: 40px 0 12px; }
article h2:first-child { margin-top: 0; }
article p { font-size: 16px; color: var(--text-muted); margin-bottom: 14px; }
article strong { color: var(--text); font-weight: 600; }
article ul, article ol { margin: 0 0 16px 22px; }
article li { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
article a { color: var(--gold); }

/* Pierwsze zdanie definicji - wyrozniony cytowalny lead pod naglowkiem */
.def { font-size: 17px; color: var(--text); border-left: 2px solid var(--gold); padding-left: 16px; margin-bottom: 16px; }

/* FAQ */
.kb-faq { margin-top: 8px; }
.kb-faq .q { font-size: 16px; font-weight: 600; color: var(--cream); margin: 24px 0 6px; }
.kb-faq .a { font-size: 15px; color: var(--text-muted); }

/* Powiazane */
.kb-related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.kb-related .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.kb-related ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.kb-related li { margin: 0; }

/* HUB */
.hub-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.hub-cell { padding: 28px; background: var(--bg-card); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hub-cell:nth-child(2n) { border-right: none; }
.hub-cell h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.hub-cell p { font-size: 14px; color: var(--text-muted); }

/* FOOTER */
footer { padding: 32px 0; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-dim); }
footer a { color: var(--text-muted); }

@media (max-width: 768px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-cell { border-right: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .kb { padding: 110px 0 64px; }
}
