:root {
  --bg: #0c0d0b;
  --bg-2: #141511;
  --bg-3: #1c1e18;
  --bg-4: #23261e;
  --line: #2a2c24;
  --line-2: #3a3d32;
  --text: #e8e6dc;
  --muted: #9a9788;
  --dim: #6b685c;
  --accent: #e8b86d;
  --accent-2: #c9843a;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --good: #8fbf7a;
  --warn: #d4a05a;
  --bad: #c56b5a;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--text);
}

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

img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  background: var(--accent);
  color: #1a1408;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .dot { color: var(--accent); }
.brand span { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  font-size: 14px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn.primary { background: var(--accent); color: #1a1408; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { background: #f0c68a; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.ghost { background: transparent; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 22px; max-width: 54ch; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.page-hero {
  padding: 64px 0 28px;
  position: relative;
}
.page-hero p { max-width: 62ch; color: var(--muted); font-size: 18px; margin-top: 16px; }

.honesty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 12px;
  font-family: var(--mono);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.honesty i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent);
  display: inline-block;
}

/* Board preview */
.board {
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.board-body { padding: 8px 12px 14px; }
.machine {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.machine:last-child { border-bottom: none; }
.machine strong { font-size: 14px; font-weight: 600; }
.machine .meta { color: var(--dim); font-size: 12px; font-family: var(--mono); }
.bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 99px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 99px;
}
.bar .fill-high { width: 82%; }
.bar .fill-low { width: 18%; }
.bar .fill-mid { width: 64%; }
.board-foot {
  padding: 12px 16px 16px;
  color: var(--dim);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 600; }
.sub { color: var(--muted); max-width: 60ch; margin-bottom: 36px; }

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

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card:hover { border-color: var(--line-2); }
.num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.split > div + div h2 { margin-top: 36px; }
.split > div:first-child h2:first-child,
.split > div h2:first-child { margin-top: 0; }
.list { list-style: none; }
.list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  font-size: 15px;
}
.list li strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  padding-top: 3px;
}
.list li span { color: var(--muted); }

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-index {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  padding-top: 3px;
}
.step h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.step p { color: var(--muted); max-width: 68ch; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th {
  color: var(--dim);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td.right, th.right { text-align: right; }
.placeholder {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warn);
  letter-spacing: 0.04em;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--muted); margin-top: 8px; font-size: 14px; max-width: 70ch; }

.cta-band {
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--bg-2);
}

form { display: grid; gap: 14px; max-width: 560px; position: relative; }
label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.note { font-size: 13px; color: var(--dim); }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-status[data-state="ok"] { color: var(--good); }
.form-status[data-state="err"] { color: var(--bad); }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pricing-note { margin-top: 16px; }
.console-note { margin-top: 20px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--dim);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer .note { margin-top: 12px; max-width: 38ch; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.site-footer h2 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0;
  font-weight: 500;
}
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); }

/* Console */
.preview-banner {
  background: color-mix(in srgb, var(--warn) 12%, var(--bg-2));
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  color: var(--text);
  font-size: 13px;
  padding: 10px 0;
}
.preview-banner strong { color: var(--warn); font-weight: 600; }
.appbar { height: 56px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.appbar-inner {
  display: flex;
  width: 100%;
  max-width: none;
  padding: 0 20px;
  justify-content: space-between;
  align-items: center;
}
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 96px); }
.side { border-right: 1px solid var(--line); padding: 16px 12px; background: var(--bg-2); }
.side a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.side a.active, .side a:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.main { padding: 28px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 28px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.kpi b { font-family: var(--mono); font-size: 22px; display: block; }
.kpi span { color: var(--dim); font-size: 12px; }
.kpi .hint { color: var(--dim); font-size: 12px; margin-top: 6px; }
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.on { color: var(--good); border-color: #355436; }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }

.error-page {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 { font-size: 56px; letter-spacing: -0.04em; font-weight: 500; }
.error-page p { color: var(--muted); margin: 12px 0 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 4px;
  }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 10px 4px; }
  .nav-links .mobile-cta { margin-top: 8px; }
  .nav-links .mobile-cta .btn { width: 100%; }
  .hero-grid, .grid-3, .grid-2, .split, .kpis, .layout, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .list li { grid-template-columns: 72px 1fr; }
}

@media (min-width: 861px) {
  .nav-links .mobile-cta { display: none; }
}
