:root {
  --bg: #0b0d12;
  --bg-elev: #12161f;
  --bg-card: #161b27;
  --border: #232938;
  --text: #e7ebf2;
  --text-dim: #99a1b3;
  --text-muted: #6b7388;
  --accent: #4f8cff;
  --accent-hover: #6a9eff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --success: #4ade80;
  --warning: #f5b342;
  --danger: #ef5a5a;
  --max: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em 0; color: var(--text-dim); }

code, pre {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}
code {
  background: var(--bg-elev);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--text);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.05);
  transition: filter 0.15s ease;
}
.brand:hover .brand-logo {
  filter: invert(1) brightness(1);
}
nav.site-nav { display: flex; gap: 28px; align-items: center; }
nav.site-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
nav.site-nav a:hover, nav.site-nav a.active { color: var(--text); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 3.25rem;
  max-width: 820px;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }
.section-eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 48px;
}

/* Card grid */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 60px 0 48px; }
  section { padding: 56px 0; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: #2e3650; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; }

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.product-card:hover { transform: translateY(-2px); }
.product-card .product-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.status-active { background: rgba(74, 222, 128, 0.12); color: var(--success); }
.status-coming { background: rgba(245, 179, 66, 0.12); color: var(--warning); }
.status-archived { background: rgba(107, 115, 136, 0.16); color: var(--text-muted); }

.product-card h3 { color: var(--text); }
.product-card .arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.feature p { font-size: 0.95rem; }

/* Stats / specs */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 800px) { .specs { grid-template-columns: repeat(2, 1fr); } }
.spec {
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}
.spec:last-child { border-right: none; }
@media (max-width: 800px) {
  .spec { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .spec:nth-child(2n) { border-right: none; }
  .spec:nth-last-child(-n+2) { border-bottom: none; }
}
.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.spec-value {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

/* Article / manual content */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol {
  color: var(--text-dim);
  padding-left: 1.4em;
  margin: 0 0 1em 0;
}
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-elev);
}
.prose td { color: var(--text-dim); }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.toc h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-dim); font-size: 0.95rem; }
.toc a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text); }

/* Page header (for non-landing pages) */
.page-header {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 8px; }
.page-header .lead { color: var(--text-dim); font-size: 1.1rem; max-width: 640px; }
.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
