/* wissen.css — SteerMind AI Knowledge / Wissen Pages
   Dark theme consistent with landing page design tokens.
   No external resources. No JavaScript.
   Self-hosted Inter font via /landing-assets/fonts/.
*/

/* ── Font Faces ────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/landing-assets/fonts/inter-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/landing-assets/fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/landing-assets/fonts/inter-latin-700.woff2') format('woff2');
}

/* ── Design Tokens ─────────────────────────────────────────────────────── */

:root {
  --bg:            #0A0E14;
  --surface:       #111820;
  --surface-raise: #161D27;
  --elevated:      #1C2430;

  --green:         #3FB950;
  --green-hover:   #2EA043;
  --green-dim:     rgba(63, 185, 80, 0.12);
  --green-glow:    rgba(63, 185, 80, 0.08);

  --text-1:        #E6EDF3;
  --text-2:        #8B949E;
  --text-3:        #484F58;

  --border:        rgba(63, 185, 80, 0.10);
  --border-hover:  rgba(63, 185, 80, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-mid:    rgba(255, 255, 255, 0.11);

  --gold:          #C9A84C;
  --shadow-glow:   0 0 40px rgba(63, 185, 80, 0.15);

  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;

  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  --max-w: 860px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  line-height: 1.78;
  min-height: 100vh;
}

::selection {
  background: rgba(63, 185, 80, 0.25);
  color: var(--text-1);
}

/* ── Skip Link ─────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  background: var(--green);
  color: #0A0E14;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  z-index: 200;
}
.skip-link:focus {
  top: var(--sp-md);
}

/* ── Header ────────────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-lg) var(--sp-xl);
}

.brand-link {
  color: var(--text-1);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-link .brand-ai {
  color: var(--green);
}

.header-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.back-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--green); }
.back-link svg { flex-shrink: 0; }

.lang-switch {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color 0.2s;
}
.lang-switch:hover { color: var(--green); }

/* ── Breadcrumb ────────────────────────────────────────────────────────── */

.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-xl) 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
  font-size: 0.82rem;
  color: var(--text-3);
}
.breadcrumb li::after {
  content: " / ";
  margin: 0 6px;
  color: var(--text-3);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current="page"] {
  color: var(--text-2);
}

/* ── Document Header ───────────────────────────────────────────────────── */

.doc-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-lg);
}

.doc-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: var(--sp-sm);
}

.doc-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ── Table of Contents ─────────────────────────────────────────────────── */

.toc {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
  padding: 0 var(--sp-xl);
}

.toc-title,
.toc-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--sp-sm);
}

.toc-list,
.toc ol,
.toc ul {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: var(--sp-lg);
}
.toc-list li,
.toc ol li,
.toc ul li { margin-bottom: 4px; }

.toc-list a,
.toc ol a,
.toc ul a,
.toc-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.toc-list a:hover,
.toc ol a:hover,
.toc ul a:hover,
.toc-link:hover { color: var(--green); }

/* ── Content Area ──────────────────────────────────────────────────────── */

.doc-section {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
  padding: 0 var(--sp-xl);
}

.doc-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}

.doc-section h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-1);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
  scroll-margin-top: 80px;
}

.doc-section p {
  margin-bottom: var(--sp-md);
  line-height: 1.82;
}

.doc-section ul,
.doc-section ol {
  margin-bottom: var(--sp-md);
  padding-left: var(--sp-xl);
}
.doc-section li {
  margin-bottom: 6px;
}

.doc-section strong {
  color: var(--text-1);
  font-weight: 600;
}

.doc-section a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.doc-section a:hover {
  border-bottom-color: var(--green);
}

/* ── Tables ────────────────────────────────────────────────────────────── */

.value-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-lg);
  font-size: 0.9rem;
}

.value-table thead {
  background: var(--surface);
}
.value-table th {
  color: var(--text-1);
  font-weight: 600;
  text-align: left;
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 2px solid var(--border-mid);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-table td {
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.value-table tbody tr:hover {
  background: var(--green-glow);
}

/* ── Info / Callout / Warning Boxes ────────────────────────────────────── */

.info-box,
.callout-box,
.warning-box {
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-lg);
  font-size: 0.92rem;
  line-height: 1.7;
}

.info-box {
  background: var(--green-dim);
  border-left: 3px solid var(--green);
  color: var(--text-2);
  box-shadow: inset 0 0 20px rgba(63, 185, 80, 0.03);
}
.info-box strong { color: var(--green); }

.callout-box {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid #C9A84C;
  color: var(--text-2);
}
.callout-box strong { color: #C9A84C; }

.warning-box {
  background: rgba(248, 81, 73, 0.08);
  border-left: 3px solid #F85149;
  color: var(--text-2);
}
.warning-box strong { color: #F85149; }

/* ── FAQ Accordion (CSS-only via details/summary) ──────────────────────── */

.faq-section {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
  padding: 0 var(--sp-xl);
}

.faq-section > h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--border-mid);
}
.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-1);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  transition: background 0.2s;
}
.faq-item summary:hover {
  background: var(--surface-raise);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.2s;
}
.faq-item[open] summary::after {
  content: "\2212";
  color: var(--green);
}

.faq-answer {
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  border-top: 1px solid var(--border-subtle);
}
.faq-answer p { margin-bottom: var(--sp-sm); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── Step List (HowTo) ─────────────────────────────────────────────────── */

.step-list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  margin-bottom: var(--sp-lg);
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--sp-lg);
  min-height: 2rem;
}
.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}
.step-list li strong {
  display: block;
  color: var(--text-1);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── CTA Banner ────────────────────────────────────────────────────────── */

.cta-banner {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raise) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl) var(--sp-xl);
  box-shadow: 0 0 60px rgba(63, 185, 80, 0.06);
}

.cta-banner h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-md);
}

.cta-banner p {
  color: var(--text-2);
  margin-bottom: var(--sp-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-banner .mockup-list {
  list-style: none;
  text-align: left;
  max-width: 520px;
  margin: 0 auto var(--sp-xl);
  padding: 0;
}
.cta-banner .mockup-list li {
  padding: var(--sp-sm) 0;
  padding-left: var(--sp-lg);
  position: relative;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.cta-banner .mockup-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #0A0E14;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 0 24px rgba(63, 185, 80, 0.3);
  transform: translateY(-1px);
}

/* ── Cross-Links ───────────────────────────────────────────────────────── */

.cross-links {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
  padding: 0 var(--sp-xl);
}

.cross-links h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-md);
}

.cross-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.cross-link-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cross-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}
.cross-link-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-raise);
}
.cross-link-card:hover::before {
  opacity: 1;
}
.cross-link-card .card-title {
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.cross-link-card .card-desc {
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Hub Page (Article List) ───────────────────────────────────────────── */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
  padding: 0 var(--sp-xl);
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hub-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}
.hub-card .hub-card-cluster {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: var(--sp-sm);
}
.hub-card .hub-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-sm);
  line-height: 1.35;
}
.hub-card .hub-card-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  flex-grow: 1;
}
.hub-card .hub-card-link {
  margin-top: var(--sp-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--sp-3xl);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.footer-brand {
  color: var(--text-1);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-brand .brand-ai { color: var(--green); }

.footer-links {
  display: flex;
  list-style: none;
  gap: var(--sp-lg);
}
.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-2); }

.footer-copy {
  color: var(--text-3);
  font-size: 0.78rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .header-inner { padding: var(--sp-md); }
  .doc-header   { padding: var(--sp-xl) var(--sp-md) var(--sp-md); }
  .breadcrumb   { padding: var(--sp-sm) var(--sp-md) 0; }
  .toc          { padding: 0 var(--sp-md); }
  .doc-section  { padding: 0 var(--sp-md); }
  .faq-section  { padding: 0 var(--sp-md); }
  .cta-banner   { padding: var(--sp-xl) var(--sp-md); }
  .cross-links  { padding: 0 var(--sp-md); }
  .hub-grid     { padding: 0 var(--sp-md); grid-template-columns: 1fr; }
  .footer-inner { padding: var(--sp-lg) var(--sp-md); flex-direction: column; text-align: center; }

  .value-table { font-size: 0.82rem; }
  .value-table th,
  .value-table td { padding: var(--sp-xs) var(--sp-sm); }

  .cross-links-grid { grid-template-columns: 1fr; }
}

/* ── Focus Visible ─────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
