:root {
  color-scheme: dark;
  --bg: #0c0f12;
  --panel: #151a1f;
  --panel-2: #1b2229;
  --line: #2c3640;
  --text: #e8edf2;
  --muted: #a5b0ba;
  --soft: #75818c;
  --accent: #55c0ff;
  --accent-2: #78db9d;
  --warn: #ffc66d;
  --danger: #ff7c73;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #101418;
  overflow-y: auto;
}

.brand {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #3d5364;
  border-radius: 8px;
  background: #18232b;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
}

.content {
  min-width: 0;
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 64px clamp(24px, 6vw, 84px) 44px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(12, 15, 18, 0.15), rgba(12, 15, 18, 0.92)),
    radial-gradient(circle at 68% 26%, rgba(85, 192, 255, 0.2), transparent 31%),
    radial-gradient(circle at 34% 42%, rgba(120, 219, 157, 0.14), transparent 29%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 42px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 42px
    );
}

.hero-inner {
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #c3ccd4;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #3b4c59;
  border-radius: 6px;
  background: #18232b;
  color: var(--text);
  font-weight: 650;
}

.button.primary {
  background: #0b75a7;
  border-color: #1885ba;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent);
}

main section {
  padding: 52px clamp(24px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

section h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

section p {
  max-width: 980px;
  color: var(--muted);
}

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

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

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 40px var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p,
.card li {
  color: var(--muted);
}

.kpi {
  font-size: 26px;
  color: var(--accent);
  font-weight: 800;
}

.layout-demo {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 12px;
  min-height: 430px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1216;
}

.pane {
  border: 1px solid #2b3540;
  border-radius: 6px;
  background: #151b21;
  padding: 14px;
}

.pane.preview {
  min-height: 250px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 46px),
    #10151b;
}

.pane.graph {
  min-height: 150px;
}

.right-stack {
  display: grid;
  grid-template-rows: 1fr 180px;
  gap: 12px;
}

.node-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
  overflow-x: auto;
}

.node {
  min-width: 128px;
  padding: 14px;
  border: 1px solid #577085;
  border-radius: 6px;
  background: #263441;
  text-align: center;
}

.wire {
  width: 42px;
  height: 2px;
  flex: 0 0 42px;
  background: #5fa7e6;
}

pre {
  margin: 16px 0 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080a0d;
  color: #dbe7f1;
  font-size: 14px;
}

code {
  font-family: "Cascadia Code", Consolas, ui-monospace, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th {
  background: #172028;
  color: var(--text);
}

td {
  color: var(--muted);
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  background: #1d1a13;
  color: #f1d9a8;
}

.roadmap li {
  margin-bottom: 9px;
}

.footer {
  padding: 32px clamp(24px, 6vw, 84px);
  color: var(--soft);
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .grid,
  .grid.two,
  .layout-demo {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }
}

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

  main section {
    padding: 38px 18px;
  }

  .hero {
    padding: 46px 18px 34px;
  }
}
