:root {
  --bg: #0a0c11;
  --surface: #11141b;
  --surface-2: #171b24;
  --surface-3: #1e2330;
  --line: #252b3a;
  --line-strong: #323a4d;
  --fg: #e7eaf0;
  --muted: #8c95a8;
  --faint: #5d6579;
  --accent: #6b93ff;
  --accent-strong: #5179f2;
  --ok: #34d399;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

pre {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

pre .c {
  color: var(--faint);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted {
  color: var(--faint);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
}

h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

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

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

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

.btn-ghost:hover {
  background: var(--surface-2);
}

/* Dashboard mock */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 35%, transparent);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

.mock-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.mock-stop {
  font-size: 12px;
  font-weight: 600;
  color: #f06272;
  border: 1px solid color-mix(in srgb, #f06272 40%, transparent);
  border-radius: 7px;
  padding: 3px 10px;
}

.device {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.device.off {
  opacity: 0.6;
}

.device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.device-top small {
  margin-left: auto;
  color: var(--faint);
  font-size: 12px;
}

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

.status.ok {
  background: var(--ok);
}

.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meters label {
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.meters i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--v) 100% no-repeat, var(--surface-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips span {
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 9px;
  color: var(--fg);
}

/* Sections */
.section {
  padding-top: 72px;
  padding-bottom: 24px;
}

h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sub {
  color: var(--muted);
  margin-bottom: 28px;
}

h2 + .grid {
  margin-top: 28px;
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.card,
.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.card h3,
.point h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p,
.point p {
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  margin-bottom: 16px;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Architecture flow */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  display: grid;
  gap: 4px;
}

.node-accent {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.node b {
  font-size: 18px;
}

.node small {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.link {
  position: relative;
  width: 120px;
  height: 2px;
  background: var(--line-strong);
}

.link::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--line-strong);
  border-right: 0;
}

.link-rev::after {
  right: auto;
  left: -1px;
  border-left: 0;
  border-right: 7px solid var(--line-strong);
}

.link span {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--muted);
}

.steps {
  margin: 32px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.steps b {
  color: var(--fg);
}

/* Get started */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.split > div {
  min-width: 0;
}

.split h3,
h3.mt {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.split p {
  color: var(--muted);
  font-size: 15px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0c11;
  font-size: 13px;
  font-weight: 700;
}

.mt {
  margin-top: 48px;
  margin-bottom: 14px;
}

h3.mt + p {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

/* Footer */
.footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
}

.footer-inner span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .link {
    width: 2px;
    height: 48px;
    justify-self: center;
  }
  .link::after {
    right: auto;
    left: -4px;
    top: auto;
    bottom: -1px;
    border: 5px solid transparent;
    border-top: 7px solid var(--line-strong);
    border-bottom: 0;
  }
  .link-rev::after {
    bottom: auto;
    top: -1px;
    border-top: 0;
    border-bottom: 7px solid var(--line-strong);
  }
  .link span {
    bottom: auto;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .grid,
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }
  .lead {
    font-size: 16.5px;
  }
}
