:root {
  --bg: #0a0a0a;
  --bg-elev: #131316;
  --bg-elev-2: #1a1a1f;
  --fg: #f3f3f4;
  --fg-muted: #a2a2a8;
  --fg-dim: #6a6a72;
  --line: #26262c;
  --accent: #7cdcff;
  --accent-strong: #38c5f5;
  --warn: #ffb86b;
  --ok: #6bd49c;
  --maxw: 1080px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, 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;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; line-height: 1.15; }
h2 { font-size: 1.6rem; line-height: 1.25; margin-top: 0; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1em; }
em { font-style: italic; color: var(--fg); }

/* ---------- header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: none;
  letter-spacing: -0.01em;
}

.brand:hover { border-bottom: none; }

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover { color: var(--fg); }
.site-nav a.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* ---------- main + sections ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: 48px 0;
}

.section-lede {
  color: var(--fg-muted);
  max-width: 60ch;
  margin-bottom: 1.6em;
}

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 64px;
}

.hero-compact {
  padding: 56px 0 40px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 18px 0 28px;
}

.accent { color: var(--accent); }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--fg-muted);
  border-bottom-color: var(--fg-muted);
}

/* ---------- two-column ---------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 24px;
}

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-elev-2);
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.product-card-head h3 { margin: 0; }

.product-meta {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin: 12px 0 0;
}

/* ---------- product detail ---------- */
.product-detail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 22px;
  margin-bottom: 18px;
}

.product-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.product-detail-head h2 { margin: 0; font-size: 1.4rem; }

.product-tagline {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 8px 0 16px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 28px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.spec-list > div {
  display: flex;
  flex-direction: column;
}

.spec-list dt {
  color: var(--fg-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.spec-list dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg);
}

/* ---------- badge ---------- */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-released { background: rgba(107, 212, 156, 0.15); color: var(--ok); }
.badge-beta { background: rgba(124, 220, 255, 0.15); color: var(--accent); }
.badge-dev { background: rgba(255, 184, 107, 0.15); color: var(--warn); }

/* ---------- value list ---------- */
.value-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.value-list li {
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.97rem;
}

.value-list strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- org grid ---------- */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.org-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.org-card h3 {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.org-role {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0;
}

.org-detail {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- info list (definition table) ---------- */
.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.info-list > div {
  display: flex;
  flex-direction: column;
}

.info-list dt {
  color: var(--fg-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.info-list dd {
  margin: 0;
  font-size: 0.97rem;
  color: var(--fg);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.contact-card h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.contact-card p { color: var(--fg-muted); font-size: 0.95rem; }
.contact-email { margin-top: 12px; font-size: 1rem; }
.contact-email a { font-weight: 500; }

.muted-note {
  color: var(--fg-dim);
  font-size: 0.92rem;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 36px var(--pad) 28px;
  border-top: 1px solid var(--line);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 1rem;
}

.footer-heading {
  color: var(--fg-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.footer-muted {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.footer-bottom {
  color: var(--fg-dim);
  font-size: 0.82rem;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero { padding: 56px 0 40px; }
  .hero-compact { padding: 40px 0 28px; }
  .section { padding: 44px 0; }

  .cols-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  :root {
    --pad: 18px;
  }
}
