@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #0c0e12;
  --bg-elevated: #13161d;
  --bg-surface: #181c25;
  --border: #2a303c;
  --border-subtle: #1f2430;
  --text: #eceff4;
  --muted: #8b93a7;
  --muted-dim: #5c6478;
  --accent: #6ea8fe;
  --accent-dim: rgba(110, 168, 254, 0.12);
  --link: #8bb9ff;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --max-width: 1120px;
  --radius: 6px;
  --radius-lg: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-product {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
}

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

.site-nav a.active {
  color: var(--text);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.55;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--muted-dim);
  font-size: 0.8rem;
}

.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #d8dde6;
  border-color: #d8dde6;
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* CSS dashboard preview */
.ui-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.ui-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.ui-preview-title {
  margin-left: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-dim);
}

.ui-preview-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.ui-sidebar {
  border-right: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

.ui-nav-item {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  color: var(--muted-dim);
}

.ui-nav-item.active {
  color: var(--text);
  background: var(--accent-dim);
  border-right: 2px solid var(--accent);
}

.ui-main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ui-chart {
  flex: 1;
  min-height: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 70%, rgba(110, 168, 254, 0.06) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border-subtle) 39px, var(--border-subtle) 40px);
  position: relative;
}

.ui-chart::after {
  content: "";
  position: absolute;
  inset: 20% 8% 25% 8%;
  border-bottom: 2px solid var(--accent);
  border-radius: 2px;
  opacity: 0.7;
  clip-path: polygon(0 80%, 15% 60%, 30% 65%, 45% 40%, 60% 50%, 75% 20%, 100% 35%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.15), transparent);
}

.ui-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ui-metric {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
}

.ui-metric span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ui-metric strong {
  font-size: 0.8rem;
  font-weight: 500;
}

.section {
  margin-bottom: 3.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-cell {
  background: var(--bg-elevated);
  padding: 1.1rem 1.25rem;
}

.spec-cell dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.35rem;
}

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

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  padding: 1.15rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.workflow-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-dim);
  margin-bottom: 0.65rem;
}

.workflow-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.workflow-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

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

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-sub {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.25rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel ul,
.panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

.panel li {
  margin-bottom: 0.45rem;
}

.panel li strong {
  color: var(--text);
  font-weight: 500;
}

.meta-line {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.meta-line.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  margin-bottom: 1.25rem;
}

.download-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.module-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.module-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  background: var(--bg-elevated);
}

.module-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 28%;
}

.module-table td:last-child {
  color: var(--muted);
}

.module-table tr:last-child td {
  border-bottom: none;
}

.module-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--muted);
}

.alert-info {
  border-color: rgba(110, 168, 254, 0.25);
}

code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: rgba(110, 118, 129, 0.12);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

.buy-card {
  max-width: 28rem;
}

.founding-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.08);
}

.buy-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 0.35rem;
}

.buy-price-current {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.buy-price-full {
  font-size: 1rem;
  color: var(--muted-dim);
  text-decoration: line-through;
}

.buy-includes {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.buy-includes li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.buy-includes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted-dim);
}

.page-route {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.page-route a {
  font-weight: 500;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.quick-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}

.quick-links a:hover {
  color: var(--text);
  border-color: var(--muted);
  text-decoration: none;
}

.flow-diagram {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.flow-diagram .hl {
  color: var(--accent);
}

.path-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.path-row {
  display: contents;
}

.path-row > span {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.path-row > span:first-child {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-dim);
  background: var(--bg-surface);
}

.path-row > span:last-child {
  color: var(--muted);
}

.path-row:last-child > span {
  border-bottom: none;
}

.path-row code {
  font-size: 0.82em;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-honesty {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.panel-honesty ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.panel-honesty li {
  margin-bottom: 0.85rem;
}

.panel-honesty li:last-child {
  margin-bottom: 0;
}

.panel-honesty strong {
  color: var(--text);
  font-weight: 600;
}

.page-footer-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--muted);
}

.release-notes-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.release-notes-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.release-notes-block p,
.release-notes-block ul {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.release-sha {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-dim);
  word-break: break-all;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .workflow {
    grid-template-columns: 1fr 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-row > span:first-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .ui-preview-body {
    grid-template-columns: 1fr;
  }

  .ui-sidebar {
    display: none;
  }
}
