:root {
  color-scheme: light;
  --ink: #10151f;
  --muted: #526070;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --grid: rgba(16, 21, 31, 0.055);
  --red: #f81018;
  --green: #00b559;
  --yellow: #ffd619;
  --blue: #0a7fbe;
  --shadow: 0 20px 54px rgba(16, 21, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 224, 234, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 68px;
  padding: 0 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 36px;
  width: 36px;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.language {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font: inherit;
  max-width: 220px;
  min-height: 40px;
  padding: 0 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 7px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(90deg, rgba(245, 247, 251, 0.15), rgba(245, 247, 251, 0.72) 55%, rgba(245, 247, 251, 0.96)),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(120deg, rgba(248, 16, 24, 0.06), rgba(255, 214, 25, 0.11) 34%, rgba(0, 181, 89, 0.08) 66%, rgba(10, 127, 190, 0.1)),
    var(--paper);
  background-size: auto, 44px 44px, 44px 44px, auto, auto;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.brand-strip {
  background: linear-gradient(90deg, var(--red), var(--yellow) 32%, var(--green) 64%, var(--blue));
  height: 7px;
}

.hero-inner {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1fr) 370px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 650px;
  padding: 72px 20px 58px;
  position: relative;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.16em;
  margin: 0 0 20px;
  max-width: 100%;
  padding: 8px 10px;
  text-transform: uppercase;
}

.eyebrow img {
  border-radius: 4px;
  height: 20px;
  width: 20px;
}

h1 {
  font-size: clamp(58px, 9vw, 112px);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.hero-title-note {
  color: #253247;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  margin: 18px 0 0;
  max-width: 760px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
  margin: 18px 0 0;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  margin-top: 24px;
  max-width: 760px;
  padding: 16px 18px;
}

.proof strong {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof span {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.status-panel {
  align-self: center;
  display: grid;
  gap: 12px;
}

.logo-stage {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.8)),
    white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  min-height: 246px;
  overflow: hidden;
  padding: 30px;
}

.logo-stage img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 188px;
}

.metric {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 21, 31, 0.075);
  padding: 16px 18px;
}

.metric small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.metric b {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  margin-top: 9px;
  overflow-wrap: anywhere;
}

.swatch {
  border-radius: 99px;
  display: block;
  height: 10px;
  margin-top: 16px;
  width: 90px;
}

.red { background: var(--red); }
.green { background: var(--green); }
.blue { background: var(--blue); }

.section {
  padding: 70px 20px;
}

.section.white {
  background: white;
  border-bottom: 1px solid var(--line);
}

.wrap {
  margin: 0 auto;
  max-width: 1180px;
}

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

.section-head h2,
.dark h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin: 0;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

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

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(16, 21, 31, 0.07);
  padding: 22px;
}

.card-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  display: inline-flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.card h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 12px 0 0;
}

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

.route {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 260px;
  padding: 15px;
}

code {
  background: white;
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.route span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dark {
  background: var(--ink);
  color: white;
}

.dark-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.step {
  align-items: start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 15px;
}

.step b {
  align-items: center;
  background: white;
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.step span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
}

.command-box {
  background: #0b1018;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  direction: ltr;
  margin-top: 24px;
  max-width: 100%;
  overflow: hidden;
}

.command-box pre {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  padding: 18px;
}

.command-box code {
  background: transparent;
  color: #e8f0ff;
  display: block;
  min-width: max-content;
  padding: 0;
  white-space: pre;
}

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

.live-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 18px;
}

.live-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-card strong {
  display: block;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.live-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.chart-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.chart-panel.wide {
  grid-column: span 2;
}

.panel-title {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-title span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.panel-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.line-chart,
.bar-chart,
.mini-list {
  min-height: 220px;
}

.line-chart svg {
  display: block;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.grid-lines line {
  stroke: rgba(16, 21, 31, 0.12);
  stroke-width: 1;
}

.chart-ticks text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chart-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
}

.chart-legend i {
  border-radius: 99px;
  display: inline-block;
  height: 8px;
  width: 18px;
}

.bar-row,
.mini-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 9px 0;
}

.bar-row {
  grid-template-columns: minmax(92px, 1fr) minmax(90px, 2fr) 58px;
}

.bar-row span,
.mini-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-row b,
.mini-row span,
.mini-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.bar-track {
  background: var(--soft);
  border-radius: 99px;
  height: 12px;
  overflow: hidden;
}

.bar-track i {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.mini-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
}

.data-tables {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.live-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  overflow: hidden;
}

.live-table-head,
.live-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding: 13px 16px;
}

.live-table-head.five,
.live-row.five {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) repeat(3, minmax(0, 0.8fr));
}

.live-table-head.six,
.live-row.six {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) repeat(4, minmax(0, 0.8fr));
}

.live-table-head {
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.live-row span,
.live-table-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 14px 16px;
}

.footer {
  background: white;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 24px 20px;
}

.footer .wrap {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.product-network {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px auto 0;
  max-width: 1180px;
}

.product-network a {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
}

[dir="rtl"] .brand,
[dir="rtl"] .nav-actions,
[dir="rtl"] .hero-actions,
[dir="rtl"] .footer .wrap {
  flex-direction: row-reverse;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

@media (max-width: 920px) {
  .hero-inner,
  .dark-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .status-panel {
    align-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-stage {
    grid-column: 1 / -1;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .nav-links {
    gap: 18px;
    margin-left: 0;
  }

  .language {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-inner {
    min-height: auto;
    padding-bottom: 42px;
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .grid,
  .route,
  .live-grid,
  .dashboard-grid,
  .live-table-head,
  .live-row,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .chart-panel.wide {
    grid-column: auto;
  }

  .section {
    padding: 52px 20px;
  }

  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
