:root {
  color-scheme: light;
  --dark: #07110f;
  --ink: #14201e;
  --muted: #66736f;
  --paper: #ffffff;
  --page: #f5f7f6;
  --line: #dfe7e4;
  --dark-line: rgba(230, 238, 235, 0.14);
  --brand: #2d88f5;
  --green: #26b978;
  --amber: #b9964f;
  --red: #de4f52;
  --shadow: 0 24px 70px rgba(12, 23, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--dark-line);
  background: rgba(7, 17, 15, 0.9);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 154px;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.7vw, 32px);
  color: #cad5d1;
  font-size: 14px;
}

.site-header nav a:hover {
  color: #fff;
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 14px;
}

.header-cta,
.primary-btn {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 34px rgba(45, 136, 245, 0.2);
}

.secondary-btn {
  border: 1px solid rgba(244, 247, 246, 0.18);
  color: #edf3f1;
  background: rgba(244, 247, 246, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.78fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 72px) 52px;
  color: #f4f7f6;
  background:
    linear-gradient(115deg, rgba(45, 136, 245, 0.17), transparent 38rem),
    radial-gradient(circle at 85% 12%, rgba(38, 185, 120, 0.09), transparent 28rem),
    linear-gradient(180deg, #07110f 0%, #081312 100%);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(185, 150, 79, 0.45);
  border-radius: 999px;
  padding: 0 11px;
  color: #d1ad62;
  background: rgba(185, 150, 79, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 880px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero p {
  max-width: 720px;
  color: #aebbb7;
  font-size: 18px;
}

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

.hero-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 28, 32, 0.96), rgba(7, 17, 15, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-terminal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--green), var(--amber), var(--red));
}

.hero-terminal > * {
  position: relative;
}

.terminal-head,
.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.terminal-head span,
.line-compare span,
.panel-title span,
.table-row span,
.cluster-item span,
.alert-item span {
  display: block;
  color: #8fa09d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.terminal-head strong {
  display: block;
  margin-top: 5px;
}

.terminal-head em,
.panel-title em {
  border-radius: 999px;
  padding: 7px 10px;
  color: #00170c;
  background: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.line-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.line-compare div {
  min-height: 104px;
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  padding: 14px;
  background: rgba(244, 247, 246, 0.035);
}

.line-compare strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.line-compare .danger {
  border-color: rgba(222, 79, 82, 0.55);
}

.range-bar {
  position: relative;
  height: 60px;
  margin: 8px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 136, 245, 0.12), rgba(38, 185, 120, 0.2), rgba(185, 150, 79, 0.16));
}

.range-bar::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 12%;
  top: 28px;
  height: 4px;
  border-radius: 999px;
  background: #d9ebe7;
}

.range-bar i {
  position: absolute;
  top: 22px;
  width: 16px;
  height: 16px;
  border: 3px solid #07110f;
  border-radius: 50%;
  background: var(--brand);
}

.range-bar span {
  position: absolute;
  top: 8px;
  color: #cbd5d2;
  font-size: 12px;
  font-weight: 900;
}

.terminal-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(222, 79, 82, 0.44);
  border-radius: 6px;
  padding: 12px;
  background: rgba(222, 79, 82, 0.1);
}

.terminal-alert strong {
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
}

.terminal-alert span {
  color: #dce5e2;
  font-size: 13px;
}

section:not(.hero) {
  padding: 84px clamp(18px, 5vw, 72px);
}

.section-copy {
  max-width: 860px;
}

.positioning,
.dashboard {
  background: #fff;
}

.positioning {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 40px;
}

.mode-grid,
.products,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

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

.mode-grid article,
.product-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.mode-grid article.active {
  border-color: rgba(45, 136, 245, 0.34);
  box-shadow: var(--shadow);
}

.mode-grid span,
.number {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--page);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #2d3b38;
  line-height: 1.8;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.panel {
  box-shadow: var(--shadow);
}

.panel.wide {
  grid-column: span 1;
}

.panel-title {
  margin-bottom: 18px;
}

.panel-title h3 {
  margin-bottom: 0;
}

.panel-title em {
  color: #111;
  background: #f4ead2;
}

.benchmark-table,
.alert-list,
.cluster-view {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, minmax(82px, 0.7fr));
  gap: 10px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfc;
}

.table-row strong,
.cluster-item strong,
.alert-item strong {
  display: block;
}

.severity {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: var(--green);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.severity.high {
  background: var(--red);
}

.severity.medium {
  color: #111;
  background: var(--amber);
}

.movement-chart {
  display: block;
  width: 100%;
  min-height: 230px;
}

.movement-chart .grid {
  fill: none;
  stroke: #dfe7e4;
}

.movement-chart .line {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.movement-chart .range {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
}

.alert-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfc;
}

.cluster-item {
  display: grid;
  grid-template-columns: 100px 1fr 72px;
  gap: 12px;
  align-items: center;
}

.cluster-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #e9efed;
}

.cluster-track i {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(20, 32, 30, 0.18);
}

.api-section {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 34px;
  align-items: start;
  background: var(--page);
  border-top: 1px solid var(--line);
}

.api-section pre {
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  color: #d9ebe7;
  background: #07110f;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}

@media (max-width: 1120px) {
  .hero,
  .positioning,
  .api-section,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mode-grid,
  .products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .brand img {
    width: 132px;
  }

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

  h1 {
    font-size: 42px;
  }

  .line-compare,
  .table-row {
    grid-template-columns: 1fr;
  }

  .cluster-item {
    grid-template-columns: 1fr;
  }

  .terminal-head,
  .panel-title,
  .terminal-alert,
  .alert-item {
    grid-template-columns: 1fr;
  }
}
