* {
  box-sizing: border-box;
}

:root {
  --bg: #05060c;
  --panel: #0f1220;
  --card: #14182a;
  --text: #e7ecff;
  --muted: #9ca9c8;
  --accent: #5cf0d8;
  --accent-2: #8c7bff;
  --gold: #f5d250;
  --rose: #e25b92;
  --orange: #ff915c;
  --stroke: #1f2740;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(92, 240, 216, 0.15), transparent 24rem),
    radial-gradient(circle at 88% 2%, rgba(245, 210, 80, 0.12), transparent 20rem),
    radial-gradient(circle at 80% 42%, rgba(226, 91, 146, 0.11), transparent 22rem),
    linear-gradient(160deg, #040510, #080b16 45%, #0d1220);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(6, 8, 15, 0.9);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand.small .spark {
  width: 30px;
  height: 30px;
}

.spark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(92, 240, 216, 0.4);
  filter: blur(0.5px);
}

.spark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--panel);
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(20, 24, 42, 0.82);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.nav-links .nav-cta {
  border-color: rgba(92, 240, 216, 0.48);
  background: linear-gradient(135deg, rgba(92, 240, 216, 0.14), rgba(140, 123, 255, 0.12));
}

.nav-links a:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 210, 80, 0.6);
  background: rgba(245, 210, 80, 0.08);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(31, 39, 64, 0.75);
  padding: 0 max(20px, calc((100vw - 1220px) / 2));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero-graph-art.png");
  background-position: center;
  background-size: cover;
  opacity: 0.5;
  filter: saturate(1.1) contrast(1.06);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 12, 0.96) 0%, rgba(5, 6, 12, 0.78) 46%, rgba(5, 6, 12, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 6, 12, 0.2), rgba(5, 6, 12, 0.86));
}

.hero-content {
  position: relative;
  padding: 68px 0 80px;
  z-index: 1;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
}

h2 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.lede {
  max-width: 700px;
  margin-top: 18px;
  color: #c8d3ee;
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-media {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 68px 0 80px;
}

.video-frame,
.hero-shot,
.connect-card {
  border: 1px solid rgba(92, 240, 216, 0.24);
  border-radius: 8px;
  background: rgba(10, 12, 20, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-frame {
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-shot {
  margin: 0;
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.connect-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.connect-card h2 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(24px, 2.4vw, 34px);
}

.connect-card p:not(.card-kicker) {
  color: var(--muted);
}

.connect-card .button {
  width: fit-content;
}

.button.primary {
  border-color: rgba(92, 240, 216, 0.5);
  background: linear-gradient(135deg, rgba(92, 240, 216, 0.18), rgba(140, 123, 255, 0.16));
}

.button.secondary {
  color: var(--muted);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--stroke);
  background: var(--stroke);
}

.intro-strip div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  background: rgba(7, 9, 18, 0.88);
  color: var(--muted);
}

.metric {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.feature-band,
.systems-band,
.showcase-pair {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: 76px 0 0;
}

.feature-band.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.feature-band.reverse .section-copy {
  order: 2;
}

.section-copy {
  display: grid;
  gap: 14px;
}

.section-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.section-copy.compact {
  margin-bottom: 22px;
}

.product-shot {
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(20, 24, 42, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot img {
  width: 100%;
  height: auto;
}

.product-shot.wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.node-grid {
  width: min(1220px, calc(100% - 40px));
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.node-card {
  position: relative;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(20, 24, 42, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.node-card::before,
.node-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.node-card::before {
  top: 30px;
  right: -56px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(92, 240, 216, 0.22);
  border-radius: 50%;
}

.node-card::after {
  right: 28px;
  bottom: 28px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(92, 240, 216, 0.14), -96px -44px 0 rgba(140, 123, 255, 0.92), -172px 18px 0 rgba(245, 210, 80, 0.9);
}

.image-node::after {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(140, 123, 255, 0.15), -84px -58px 0 rgba(92, 240, 216, 0.92), -150px 16px 0 rgba(255, 145, 92, 0.9);
}

.structured-node::after {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 210, 80, 0.16), -90px -46px 0 rgba(92, 240, 216, 0.92), -166px 22px 0 rgba(226, 91, 146, 0.9);
}

.node-card h2 {
  position: relative;
  max-width: 12ch;
  margin-top: 10px;
  font-size: 28px;
}

.node-card p:not(.card-kicker) {
  position: relative;
  max-width: 31ch;
  margin-top: 16px;
  color: var(--muted);
}

.systems-band {
  padding: 84px 0 0;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  overflow: hidden;
  background: var(--stroke);
  box-shadow: var(--shadow);
}

.systems-grid article {
  min-height: 180px;
  padding: 20px;
  background: rgba(15, 18, 32, 0.94);
}

.systems-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  padding: 72px 0 86px;
}

.showcase-pair .product-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px;
  border-top: 1px solid var(--stroke);
  background: rgba(6, 8, 15, 0.9);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}

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

.footer-links a:hover {
  color: var(--accent);
}

.site-footer p {
  font-size: 13px;
}

.content-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 82px;
}

.page-hero {
  display: grid;
  gap: 14px;
  padding: 28px 0 34px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 7vw, 76px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

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

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

.content-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(20, 24, 42, 0.82);
  box-shadow: var(--shadow);
}

.content-card h2 {
  max-width: 12ch;
  font-size: clamp(26px, 3vw, 38px);
}

.content-card p:not(.card-kicker) {
  margin-top: 14px;
  color: var(--muted);
}

.content-card a {
  color: var(--text);
}

.docs-page {
  width: min(1180px, calc(100% - 40px));
}

.docs-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(15, 18, 32, 0.78);
}

.docs-index a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(92, 240, 216, 0.18);
  border-radius: 8px;
  background: rgba(20, 24, 42, 0.72);
  color: #c8d3ee;
  font-size: 13px;
  text-decoration: none;
}

.docs-index a:hover {
  border-color: rgba(245, 210, 80, 0.55);
  color: var(--text);
}

.docs-grid {
  display: grid;
  gap: 16px;
}

.docs-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 240, 216, 0.08), transparent 28%),
    rgba(20, 24, 42, 0.82);
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

.docs-copy {
  display: grid;
  gap: 12px;
}

.docs-copy h2 {
  max-width: none;
  margin-top: 0;
  font-size: clamp(28px, 3.2vw, 44px);
}

.docs-copy p:not(.card-kicker) {
  color: var(--muted);
  font-size: 16px;
}

.docs-card img {
  justify-self: center;
  width: auto;
  max-width: min(100%, 340px);
  height: auto;
  border: 1px solid rgba(92, 240, 216, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 12, 0.7);
}

@media (max-width: 940px) {
  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 72px 0 0;
  }

  .hero-media {
    padding: 0 0 56px;
  }

  .intro-strip,
  .feature-band,
  .feature-band.reverse,
  .node-grid,
  .systems-grid,
  .showcase-pair,
  .content-grid,
  .content-grid.two {
    grid-template-columns: 1fr;
  }

  .feature-band.reverse .section-copy {
    order: 0;
  }

  .feature-band {
    padding-top: 56px;
  }

  .node-grid {
    margin-top: 56px;
  }

  .docs-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 14px;
  }

  .hero-content,
  .feature-band,
  .systems-band,
  .showcase-pair,
  .node-grid {
    width: min(100% - 28px, 1220px);
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .lede {
    font-size: 18px;
  }

  .hero-actions,
  .nav-links {
    width: 100%;
  }

  .button,
  .nav-links a {
    width: 100%;
  }

  .content-page {
    width: min(100% - 28px, 1040px);
    padding-top: 34px;
  }

  .docs-page {
    width: min(100% - 28px, 1180px);
  }

  .docs-index {
    padding: 10px;
  }

  .docs-index a {
    flex: 1 1 130px;
    justify-content: center;
  }

  .docs-card {
    padding: 14px;
  }

  .hero-media {
    order: -1;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0 0;
  }

  .hero-content {
    padding: 28px 0 46px;
  }

  .hero-actions {
    margin-top: 18px;
  }
}
