:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #66736d;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --line: #d8e1dd;
  --green: #28735f;
  --green-2: #36c798;
  --blue: #2563eb;
  --amber: #b45309;
  --dark: #111815;
  --shadow: 0 20px 60px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 66px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  display: block;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.button,
.copy-button {
  min-height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a {
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.site-nav .nav-action {
  background: var(--dark);
  color: #ffffff;
  padding: 0 14px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 120px);
  max-height: 760px;
  overflow: hidden;
  color: #ffffff;
  display: grid;
  align-items: center;
  padding: clamp(48px, 9vw, 104px) clamp(18px, 6vw, 88px);
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 21, 0.95), rgba(17, 24, 21, 0.76) 48%, rgba(17, 24, 21, 0.45)),
    linear-gradient(180deg, rgba(17, 24, 21, 0), rgba(17, 24, 21, 0.32));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green-2);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

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

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button {
  border: 1px solid transparent;
  padding: 0 18px;
}

.button.primary {
  background: #ffffff;
  color: var(--dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: #ffffff;
}

.signal-band,
.section {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.signal-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.section.alt {
  background: #eef3f1;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split-layout,
.platform-layout,
.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

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

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

.frontend-card,
.scenario,
.doc-grid div {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.frontend-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7f0ed;
  color: var(--green);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 24px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.product-preview {
  border-radius: 8px;
  background: #111815;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-topbar {
  height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #36c798;
}

.preview-topbar span:nth-child(2) {
  background: #f59e0b;
}

.preview-topbar span:nth-child(3) {
  background: #60a5fa;
}

.preview-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
}

.preview-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.preview-sidebar span {
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-sidebar .active {
  background: #36c798;
}

.preview-map {
  position: relative;
  min-height: 390px;
  background:
    linear-gradient(rgba(54, 199, 152, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hub,
.node {
  position: absolute;
  min-height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.hub {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: var(--dark);
}

.node {
  background: #1d2b26;
  color: #d9fff3;
  border: 1px solid rgba(54, 199, 152, 0.55);
}

.node-a {
  left: 14%;
  top: 20%;
}

.node-b {
  right: 12%;
  top: 22%;
}

.node-c {
  left: 18%;
  bottom: 18%;
}

.node-d {
  right: 18%;
  bottom: 17%;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.feature-list span {
  color: var(--muted);
}

.docs-callout {
  background: #ffffff;
}

.command-panel {
  border-radius: 8px;
  background: #111815;
  color: #e9f5ef;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.command-panel.compact {
  margin-top: 18px;
}

.command-header {
  min-height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0 12px;
  cursor: pointer;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: #e9f5ef;
  font-size: 13px;
  line-height: 1.6;
}

code,
pre {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.docs-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.docs-nav a {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.docs-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.docs-content {
  min-width: 0;
}

.docs-header {
  margin-bottom: 36px;
}

.docs-header h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
}

.doc-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.doc-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.doc-section pre {
  margin: 16px 0;
  border-radius: 8px;
  background: #111815;
}

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

.doc-grid div {
  min-height: 120px;
  box-shadow: none;
}

.doc-grid strong,
.doc-grid span {
  display: block;
}

.doc-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: #f7faf8;
    display: none;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(100svh - 96px);
    max-height: none;
  }

  .split-layout,
  .platform-layout,
  .docs-layout,
  .docs-page {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scenario-grid,
  .frontend-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 15px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-actions,
  .site-footer,
  .feature-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .preview-body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .preview-sidebar {
    padding: 14px;
  }

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