:root {
  --bg-deep: #0a1628;
  --bg-card: #112240;
  --bg-card-hover: #1a3358;
  --accent: #38bdf8;
  --accent-soft: #0ea5e9;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e3a5f;
  --success: #34d399;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(56, 189, 248, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  padding: 1.1rem 0 0;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.is-active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
}

.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-mark {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}

.brand-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
}

.brand-label span a {
  color: var(--accent);
  font-weight: 600;
}

.site-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header .tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-disabled,
a.btn-disabled {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.btn-disabled:hover,
a.btn-disabled:hover {
  transform: none;
  text-decoration: none;
  background: rgba(148, 163, 184, 0.12);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge.live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.3);
}

.badge.local {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.25);
}

.badge.soon {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  text-transform: none;
  letter-spacing: 0;
}

.guide-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.guide-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.guide-table td {
  color: var(--text-muted);
}

.guide-table td strong {
  color: var(--text);
}

.doc-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.doc-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.doc-links a {
  font-weight: 600;
}

.doc-url {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.doc-links .doc-url {
  font-size: 0.8rem;
}

.note-soon {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.demo-flow {
  width: 100%;
  min-width: 0;
  height: auto;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.product-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.product-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.product-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.95rem;
}

.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

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

.btn-primary:hover {
  background: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.08);
  text-decoration: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.product-hero {
  margin-bottom: 2rem;
}

.product-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
}

.product-hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 1rem;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.content-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.content-block ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 0.4rem;
}

.content-block li strong {
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-image-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #1a1a1a;
}

.demo-image {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
  border: none;
  margin: 0;
  border-radius: 0;
}

code,
pre {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.85rem;
}

pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  color: #cbd5e1;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.25rem;
}

.tool-list li:last-child {
  border-bottom: none;
}

.tool-list .tool-name {
  font-weight: 600;
  color: var(--text);
}

.tool-list .tool-version {
  font-size: 0.8rem;
  color: var(--accent);
}

.tool-list .tool-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 1.75rem;
  }

  .product-card {
    padding: 1.25rem;
  }
}
