html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background: #171717;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.jb-body {
  position: relative;
  min-height: 100vh;
  background: #171717;
}

.jb-grid-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='56'%20height='56'%20fill='none'/%3e%3crect%20width='28'%20height='28'%20fill='black'/%3e%3c/svg%3e");
  background-size: 4px 4px;
  background-repeat: repeat;
}

.jb-glow-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.jb-glow-background::before,
.jb-glow-background::after {
  content: "";
  position: absolute;
  top: -160px;
  width: 1280px;
  height: 1280px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(72, 224, 84, 0.78), rgba(72, 224, 84, 0.32) 56%, rgba(72, 224, 84, 0) 92%);
  filter: blur(70px);
  opacity: 0.7;
}

.jb-glow-background::before {
  left: -1030px;
}

.jb-glow-background::after {
  right: -1030px;
}

.jb-main,
.jb-topbar,
.jb-footer {
  position: relative;
  z-index: 2;
}

.jb-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.jb-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 16px;
}

.jb-topbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(72, 224, 84, 0.1);
  border-radius: 48px;
  background: #111;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.jb-brand,
.jb-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.jb-brand-name,
.jb-footer-brand span {
  font-size: 18px;
  font-weight: 600;
}

.jb-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.jb-nav-links,
.jb-nav-actions,
.jb-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jb-nav-links,
.jb-footer-links {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.jb-nav-links a:hover,
.jb-footer-links a:hover {
  color: #fff;
}

.jb-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.jb-button:hover {
  transform: translateY(-1px);
}

.jb-button-clear {
  color: #fff;
}

.jb-button-outline {
  border: 1px solid rgba(72, 224, 84, 0.3);
  color: #48e054;
  background: rgba(72, 224, 84, 0.08);
}

.jb-button-outline:hover {
  border-color: rgba(72, 224, 84, 0.48);
  background: rgba(72, 224, 84, 0.14);
}

.jb-hero {
  padding: 92px 0 104px;
}

.jb-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jb-hero-brandline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 42px;
}

.jb-hero-brandline img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.jb-hero-brandline h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.85;
  font-weight: 500;
}

.jb-pill,
.jb-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #fff;
  font-size: 16px;
  color: #fff;
}

.jb-hero-title,
.jb-section-heading h2,
.jb-center-panel h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.88;
}

.jb-hero-title {
  max-width: 1060px;
  font-size: clamp(56px, 9vw, 118px);
}

.jb-hero-copy {
  max-width: 760px;
  margin: 32px 0 0;
  font-size: 24px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.jb-command-card {
  width: min(738px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding: 16px;
  border: 1px solid rgba(72, 224, 84, 0.3);
  border-radius: 32px;
  background: #48e054;
  color: #111;
}

.jb-command-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.08);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.jb-command-switcher span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.jb-switcher-active {
  background: rgba(255, 255, 255, 0.62);
}

.jb-command-line {
  min-width: 0;
  flex: 1;
  font-family: Consolas, "Courier New", monospace;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  word-break: break-word;
}

.jb-platform-row,
.jb-feature-pills,
.jb-tab-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.jb-platform-row {
  margin-top: 32px;
}

.jb-platform-pill,
.jb-feature-pills span,
.jb-tab-row span,
.jb-canvas-toprow span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(72, 224, 84, 0.3);
  background: #111;
  font-size: 16px;
  color: #fff;
}

.jb-section {
  padding: 48px 0 116px;
}

.jb-section-heading {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.jb-section-kicker,
.jb-card-kicker,
.jb-mini-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.jb-section-heading h2,
.jb-center-panel h2 {
  font-size: clamp(42px, 6vw, 88px);
}

.jb-section-heading p:last-child,
.jb-feature-card p,
.jb-surface-copy,
.jb-center-panel p,
.jb-preview-panel p,
.jb-route-card p {
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.jb-tab-row {
  margin-bottom: 28px;
  gap: 10px;
}

.jb-tab-active,
.jb-feature-pill-active {
  background: #48e054;
  color: #111;
  border-color: rgba(72, 224, 84, 0.3);
}

.jb-graph-card,
.jb-preview-card,
.jb-surface-card,
.jb-feature-card,
.jb-center-panel,
.jb-footer-card {
  border: 1px solid rgba(72, 224, 84, 0.1);
  background: #111;
}

.jb-graph-card {
  overflow: hidden;
  border-radius: 48px;
}

.jb-tree-stage {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(17, 17, 17, 0));
}

.jb-tree-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.jb-tree-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jb-tree-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(72, 224, 84, 0.16);
  background: rgba(17, 17, 17, 0.92);
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  pointer-events: none;
}

.jb-tree-label-root,
.jb-tree-label-top,
.jb-tree-label-bottom {
  transform: translate(-50%, -50%);
}

.jb-tree-label-right-top,
.jb-tree-label-right-mid,
.jb-tree-label-far-right-top,
.jb-tree-label-far-right-bottom,
.jb-tree-label-bottom-right {
  transform: translate(0, -50%);
}

.jb-tree-label-left-mid,
.jb-tree-label-bottom-left {
  transform: translate(-100%, -50%);
}

.jb-tree-label-root {
  border-color: rgba(72, 224, 84, 0.32);
  background: rgba(72, 224, 84, 0.18);
  color: #fff;
}

.jb-tree-label-right-top {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.jb-tree-label-right-mid {
  border-color: rgba(72, 224, 84, 0.3);
  background: rgba(72, 224, 84, 0.18);
  color: #fff;
}

.jb-preview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  overflow: hidden;
  border-radius: 48px;
}

.jb-preview-sidebar,
.jb-preview-panel {
  padding: 24px;
  min-width: 0;
}

.jb-preview-sidebar {
  border-right: 1px solid rgba(72, 224, 84, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.jb-preview-panel {
  border-left: 1px solid rgba(72, 224, 84, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.jb-mini-item {
  width: 100%;
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.jb-mini-item-active {
  background: rgba(72, 224, 84, 0.16);
  color: #fff;
}

.jb-preview-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(72, 224, 84, 0.08);
}

.jb-preview-canvas {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(17, 17, 17, 0));
}

.jb-preview-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.jb-canvas-toprow {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jb-canvas-toprow span {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-color: rgba(72, 224, 84, 0.22);
}

.jb-canvas-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jb-canvas-lines path,
.jb-canvas-lines circle {
  vector-effect: non-scaling-stroke;
}

.jb-link {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jb-link-primary {
  stroke: rgba(72, 224, 84, 0.78);
  stroke-width: 3;
}

.jb-link-secondary {
  stroke: rgba(255, 255, 255, 0.19);
  stroke-width: 1.8;
}

.jb-link-faint {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.35;
}

.jb-point {
  stroke-width: 1.8;
}

.jb-point-entry {
  fill: rgba(72, 224, 84, 0.38);
  stroke: rgba(72, 224, 84, 0.95);
}

.jb-point-core {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.42);
}

.jb-point-focus {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(255, 255, 255, 0.9);
}

.jb-point-accent {
  fill: rgba(72, 224, 84, 0.22);
  stroke: rgba(72, 224, 84, 0.68);
}

.jb-point-muted {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.22);
}

.jb-node {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(72, 224, 84, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  max-width: none;
  pointer-events: none;
}

.jb-node-entry {
  background: rgba(72, 224, 84, 0.16);
}

.jb-node-core {
  background: rgba(255, 255, 255, 0.14);
}

.jb-node-accent {
  background: rgba(72, 224, 84, 0.26);
  color: #fff;
}

.jb-node-focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.jb-node-subtle {
  padding: 8px 11px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.jb-route-card,
.jb-review-card,
.jb-prompt-card {
  border-radius: 28px;
  border: 1px solid rgba(72, 224, 84, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.jb-route-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  max-width: 320px;
  padding: 16px;
  backdrop-filter: blur(12px);
}

.jb-route-label,
.jb-review-card span,
.jb-prompt-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.jb-route-card strong,
.jb-prompt-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.jb-route-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.jb-preview-panel h3,
.jb-surface-card h3,
.jb-feature-card h3 {
  margin: 0;
  font-size: 32px;
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.jb-preview-panel h3 {
  font-size: 28px;
  line-height: 1.04;
}

.jb-review-card,
.jb-prompt-card {
  margin-top: 20px;
  padding: 16px;
}

.jb-review-card ul,
.jb-surface-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.jb-review-card li + li,
.jb-surface-card li + li {
  margin-top: 6px;
}

.jb-feature-pills {
  margin-bottom: 28px;
}

.jb-feature-grid,
.jb-surface-grid {
  display: grid;
  gap: 18px;
}

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

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

.jb-feature-card,
.jb-surface-card {
  padding: 28px;
  border-radius: 48px;
}

.jb-surface-card-highlight {
  border-color: rgba(72, 224, 84, 0.3);
  box-shadow: inset 0 0 0 1px rgba(72, 224, 84, 0.08);
}

.jb-card-tag {
  margin-bottom: 20px;
  border-color: transparent;
  background: #252525;
  color: rgba(255, 255, 255, 0.7);
}

.jb-green-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(72, 224, 84, 0.3);
  border-radius: 32px;
  background: #48e054;
  color: #111;
}

.jb-green-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.08);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.jb-green-switcher span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.jb-green-switcher-active {
  background: rgba(255, 255, 255, 0.62);
}

.jb-green-text {
  flex: 1;
  font-size: 20px;
  line-height: 1.45;
}

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

.jb-metric-card {
  display: flex;
  padding: 14px;
  border: 1px solid rgba(72, 224, 84, 0.3);
  border-radius: 48px;
  background: #111;
}

.jb-metric-card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border-radius: 36px;
  background: #111;
  text-align: center;
}

.jb-metric-card strong {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.jb-metric-card span {
  max-width: 180px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.jb-center-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding: 36px;
  border-radius: 48px;
  text-align: center;
}

.jb-center-panel img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 28px;
}

.jb-center-panel p {
  max-width: 930px;
}

.jb-footer {
  padding: 0 0 16px;
}

.jb-footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 48px;
}

@media (max-width: 1120px) {
  .jb-preview-card {
    grid-template-columns: 1fr;
  }

  .jb-preview-sidebar,
  .jb-preview-panel {
    border: 0;
  }

  .jb-preview-sidebar {
    border-bottom: 1px solid rgba(72, 224, 84, 0.08);
  }

  .jb-preview-panel {
    border-top: 1px solid rgba(72, 224, 84, 0.08);
  }

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

@media (max-width: 920px) {
  .jb-nav-links {
    display: none;
  }

  .jb-command-card,
  .jb-green-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .jb-feature-grid,
  .jb-surface-grid,
  .jb-metric-row {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 680px) {
  .jb-shell {
    width: min(1240px, calc(100vw - 20px));
  }

  .jb-topbar {
    padding-top: 10px;
  }

  .jb-topbar-card,
  .jb-feature-card,
  .jb-surface-card,
  .jb-center-panel,
  .jb-footer-card {
    border-radius: 32px;
  }

  .jb-preview-card,
  .jb-metric-card {
    border-radius: 34px;
  }

  .jb-preview-canvas {
    min-height: 420px;
  }

  .jb-tree-stage {
    min-height: 520px;
  }

  .jb-canvas-lines,
  .jb-route-card {
    display: none;
  }

  .jb-node {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jb-nav-actions .jb-button-outline {
    display: none;
  }

  .jb-brand-name,
  .jb-footer-brand span {
    font-size: 16px;
  }

  .jb-brand-logo {
    width: 30px;
    height: 30px;
  }

  .jb-platform-pill,
  .jb-feature-pills span,
  .jb-tab-row span,
  .jb-canvas-toprow span {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .jb-hero-copy,
  .jb-section-heading p:last-child,
  .jb-feature-card p,
  .jb-surface-copy,
  .jb-center-panel p,
  .jb-preview-panel p {
    font-size: 17px;
  }

  .jb-preview-panel h3,
  .jb-surface-card h3,
  .jb-feature-card h3 {
    font-size: 28px;
  }

  .jb-tree-label {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .jb-button {
    transition: none;
  }
}
