:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-2: #f0f4f1;
  --ink: #171717;
  --ink-2: #454545;
  --muted: #74746d;
  --line: #deded6;
  --line-2: #c9c9be;
  --blue: #2458e6;
  --green: #16845b;
  --amber: #b17818;
  --coral: #c4553b;
  --shadow: 0 18px 48px rgba(30, 32, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
pre {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(218, 220, 211, 0.72);
  background: rgba(250, 250, 246, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-height: 44px;
  border-radius: 12px;
  padding: 3px 10px 3px 3px;
  flex: 0 0 auto;
  color: var(--ink);
  transition: background 0.16s ease, transform 0.16s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.72);
}

.brand-mark-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(20, 24, 28, 0.1);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 32, 28, 0.1);
}

.brand-mark-small {
  display: block;
  width: 29px;
  height: 24px;
  object-fit: contain;
}

.brand-name {
  color: #1b1f24;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

.nav-links,
.nav-actions,
.hero-actions,
.site-footer div {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-self: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(30, 32, 28, 0.07);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-links a:hover {
  background: #fff;
  color: var(--blue);
}

.nav-actions,
.hero-actions {
  gap: 10px;
}

.nav-actions {
  justify-self: end;
}

.nav-actions .ghost-link {
  min-height: 38px;
  padding: 0 12px;
}

.nav-actions .solid-link {
  min-height: 42px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.13);
}

.ghost-link,
.solid-link,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.ghost-link {
  color: var(--ink-2);
}

.ghost-link:hover {
  color: var(--ink);
}

.solid-link {
  background: var(--ink);
  color: #fff;
}

.solid-link:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.outline-link {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.outline-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f6f6ef;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: #ecefe8;
}

.hero-scene {
  position: relative;
  order: 2;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto 74px;
}

.terminal-window,
.routing-board,
.meter-stack {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.terminal-window {
  width: 100%;
  min-height: 284px;
  padding: 20px;
  color: #eaf0ff;
  background: #121826;
}

.window-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #75809a;
}

.window-bar span:first-child {
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.code-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  color: #dce7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.code-line b {
  color: #89a9ff;
  font-weight: 800;
}

.muted-code {
  color: #98a2b3;
}

.success {
  color: #97e2bd;
}

.routing-board {
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 284px;
  padding: 24px;
}

.route-row {
  display: grid;
  grid-template-columns: 86px 1fr 72px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.route-row i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9e2;
}

.route-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--blue);
}

.route-row:nth-child(2) i::before {
  background: var(--green);
}

.route-row:nth-child(3) i::before {
  background: var(--amber);
}

.route-row strong {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.meter-stack {
  grid-column: 1 / -1;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(540px, 100%);
  margin-top: 4px;
}

.meter-stack div {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.meter-stack div:last-child {
  border-right: 0;
}

.meter-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meter-stack strong {
  color: var(--ink);
  font-size: 22px;
}

.hero-content {
  position: relative;
  order: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 890px;
  margin: 0 auto;
  padding: 88px 24px 54px;
  text-align: center;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(36, 88, 230, 0.2);
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-badge {
  justify-content: center;
  padding: 8px 14px;
}

.section-kicker {
  padding: 6px 10px;
}

h1 {
  max-width: 820px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-button {
  min-height: 50px;
  min-width: 158px;
  padding: 0 22px;
  font-size: 15px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-strip div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.proof-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pricing-block,
.routing-block,
.start-block,
.faq-block,
.ops-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 24px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.ops-copy h2 {
  color: var(--ink);
  font-size: 40px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p,
.ops-copy p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-header {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 0.7fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.table-scroll {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
  font-size: 14px;
}

.pricing-table thead {
  display: none;
}

.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

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

.pricing-table td:first-child {
  text-align: left;
}

.model-name {
  display: grid;
  gap: 4px;
  font-weight: 900;
}

.model-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.money {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.route-load {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.load-track {
  position: relative;
  width: 150px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9e2;
}

.load-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--load);
  background: var(--blue);
}

.route-load span,
.mode-pill {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.mode-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 5px 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-grid article,
.faq-list article,
.steps div,
.ops-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.feature-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
}

.feature-grid span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.feature-grid h3,
.faq-list h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.feature-grid p,
.faq-list p,
.steps p,
.ops-list span {
  color: var(--ink-2);
  line-height: 1.72;
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  gap: 8px;
}

.steps strong,
.ops-list strong {
  color: var(--ink);
  font-size: 16px;
}

.code-card {
  overflow: auto;
  min-height: 100%;
  border: 1px solid #273044;
  border-radius: 8px;
  background: #111827;
  color: #e8eefc;
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
}

.ops-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
}

.ops-copy {
  display: grid;
  gap: 14px;
}

.ops-list {
  display: grid;
  gap: 12px;
}

.ops-list div {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--green);
}

.ops-list div:nth-child(2) {
  border-left-color: var(--blue);
}

.ops-list div:nth-child(3) {
  border-left-color: var(--amber);
}

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

.faq-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 172px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 24px 42px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer div {
  gap: 18px;
}

.footer-brand img {
  display: block;
  width: 112px;
  height: auto;
}

.site-footer a:hover {
  color: var(--blue);
}

@media (max-width: 1040px) {
  .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .feature-grid,
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .brand {
    padding-right: 8px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-scene {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    margin-bottom: 34px;
  }

  h1 {
    font-size: 48px;
  }

  .proof-strip,
  .start-layout,
  .ops-block {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin: 24px 24px 0;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .table-header {
    display: none;
  }

  .pricing-table thead {
    display: table-header-group;
  }

  .pricing-table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
  }

  .pricing-table th:first-child {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    height: auto;
    align-items: center;
    justify-items: stretch;
    gap: 12px;
    padding: 14px 18px;
  }

  .brand {
    justify-self: center;
  }

  .nav-actions {
    justify-self: stretch;
    width: 100%;
  }

  .nav-actions a {
    flex: 1;
  }

  .hero-content {
    padding: 74px 18px 58px;
  }

  .hero-scene {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section-heading h2,
  .ops-copy h2 {
    font-size: 30px;
  }

  .pricing-block,
  .routing-block,
  .start-block,
  .faq-block,
  .ops-block {
    padding: 54px 18px;
  }

  .feature-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .code-card {
    font-size: 12px;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 18px;
  }
}
