:root {
  --ink: #17202d;
  --muted: #667085;
  --line: #e7ebf0;
  --soft: #f7f9fc;
  --accent: #635bff;
  --accent2: #16a394;
  --white: #fff;
  --max: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

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

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

.lede a,
.card p a,
.feature h3 a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.lede a:hover,
.card p a:hover,
.feature h3 a:hover {
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.page-bg {
  display: none;
}

.wrap,
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
header.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(231, 235, 240, 0.75);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo,
.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.brand-mark,
.brand-name {
  display: none;
}

nav.primary {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
  color: #475467;
}

nav.primary a:hover,
nav.primary a.is-active {
  color: var(--ink);
}

.nav-cta,
.hero-cta,
.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.nav-cta {
  height: auto;
}

.nav-cta:hover,
.hero-cta:hover,
.btn-primary:hover {
  background: #0f1620;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 110px;
  background:
    radial-gradient(circle at 80% 20%, rgba(99, 91, 255, 0.12), transparent 31%),
    radial-gradient(circle at 10% 80%, rgba(22, 163, 148, 0.1), transparent 27%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5b6472;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 25px;
  max-width: 800px;
  font-weight: 700;
}

h1 em {
  font-style: normal;
}

.gradient {
  background: linear-gradient(110deg, #17202d 25%, #635bff 68%, #16a394);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 650px;
  margin: 0 0 32px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 640px;
}

.hero-proof li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5b6472;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
}

.btn,
.secondary,
.btn-ghost {
  border: 1px solid #d8dee8;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 650;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary,
.btn.btn-primary,
button.btn-primary {
  height: auto;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn.btn-primary:hover,
button.btn-primary:hover {
  background: #0f1620;
  color: #fff;
}

.hero-art {
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fbfcfe;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.09);
}

.matrix {
  position: absolute;
  inset: 35px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 14px;
  transform: rotate(-4deg);
}

.node {
  border: 1px solid #dfe4eb;
  background: #fff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #667085;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  padding: 4px 5px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
}

.node.main {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-size: 13px;
}

.connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.connector span {
  position: absolute;
  height: 1px;
  background: #cfd6e0;
  transform-origin: left center;
}

.c1 {
  width: 170px;
  left: 50%;
  top: 50%;
}

.c2 {
  width: 125px;
  left: 50%;
  top: 50%;
  transform: rotate(35deg);
}

.c3 {
  width: 125px;
  left: 50%;
  top: 50%;
  transform: rotate(-35deg);
}

.c4 {
  width: 170px;
  left: 50%;
  top: 50%;
  transform: rotate(90deg);
}

.c5 {
  width: 120px;
  left: 50%;
  top: 50%;
  transform: rotate(145deg);
}

.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 10px solid #f0f2f6;
  display: grid;
  place-items: center;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.13);
}

.center img {
  width: 52px;
  height: 52px;
}

section {
  padding: 100px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

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

h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 10px 0 16px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

.lead,
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.band,
.services,
.opensource {
  background: var(--soft);
}

.grid4,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card,
.feature,
.panel,
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  min-height: 245px;
  transition: 0.2s ease;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.03);
}

.mini-card {
  min-height: 0;
  display: block;
}

.card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.icon,
.icon-orb {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #f0efff;
  display: grid;
  place-items: center;
  font-weight: 850;
  color: var(--accent);
  margin-bottom: 25px;
}

.icon-orb svg {
  width: 20px;
  height: 20px;
}

.card h3,
.feature h3 {
  margin: 0 0 9px;
}

.card p,
.feature p,
.mini-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.number {
  font-size: 12px;
  color: #98a2b3;
  font-weight: 750;
  margin-bottom: 22px;
}

.products-grid,
.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.service-grid .card:nth-child(1),
.grid4 .card:nth-child(1) {
  background: #fff;
}

.service-grid .card:nth-child(2),
.grid4 .card:nth-child(2) {
  background: #f6f5ff;
}

.service-grid .card:nth-child(3),
.grid4 .card:nth-child(3) {
  background: #f3fbf8;
}

.service-grid .card:nth-child(4),
.grid4 .card:nth-child(4) {
  background: #f4f8ff;
}

.service-grid .card:nth-child(5),
.grid4 .card:nth-child(5) {
  background: #fff7f3;
}

.service-grid .card:nth-child(6),
.grid4 .card:nth-child(6) {
  background: #f7faf3;
}

.grid4 .card:nth-child(7) {
  background: #f7f9fc;
}

.product-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
  margin-bottom: 25px;
  color: #8b95a5;
}

.product.primary .product-tag {
  color: #aeb7c5;
}

.product-link {
  display: block;
  color: inherit;
}

.product h3 {
  font-size: 31px;
  letter-spacing: -0.035em;
  margin: 0 0 13px;
}

.product-mark {
  position: absolute;
  right: 30px;
  top: 28px;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #f3f5f8;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
}

.product.primary .product-mark {
  background: #2b3441;
  color: #fff;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.pill {
  font-size: 12px;
  border: 1px solid #dfe4eb;
  border-radius: 99px;
  padding: 5px 10px;
  color: #667085;
}

.product.primary .pill {
  border-color: #3b4654;
  color: #d5dbe3;
}

.open-grid,
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.split {
  grid-template-columns: 1fr 1fr;
}

.open-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}

.repo {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.repo:last-child {
  border-bottom: 0;
}

.repo-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #17202d;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: ui-monospace, monospace;
  font-weight: 900;
  flex-shrink: 0;
}

.repo h4 {
  margin: 0;
  font-size: 17px;
}

.repo span {
  font-size: 13px;
  color: var(--muted);
}

.principles,
.stat-grid,
.feature-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 55px;
}

.feature-grid,
.step-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, 1fr);
}

.step-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.principle,
.stat {
  padding: 28px 0 0;
  border-top: 1px solid #dfe4eb;
}

.principle strong,
.stat b {
  display: block;
  margin-bottom: 7px;
}

.principle p,
.stat span {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.proof .stat-grid {
  margin-top: 0;
  margin-bottom: 36px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  min-height: 0;
}

.case h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

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

.case a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.stack {
  margin-top: 40px;
}

.stack-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.practice-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.practice .secondary {
  margin-top: 8px;
}

.practice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.practice-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.practice-list strong {
  display: block;
  margin-bottom: 6px;
}

.practice-list span {
  color: var(--muted);
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 650;
  font-size: 14px;
}

.product.primary .link-arrow {
  color: #fff;
}

.cta,
.cta-band .cta-inner,
.cta-inner {
  padding: 90px 0;
  background: linear-gradient(120deg, #17202d, #222c3a);
  color: #fff;
  text-align: center;
  border-radius: 0;
}

.cta-band {
  margin: 0;
}

.cta-inner {
  padding: 90px 48px;
}

.cta h2,
.cta-inner h2 {
  max-width: 800px;
  margin: 0 auto 18px;
  color: #fff;
}

.cta p,
.cta-inner p {
  color: #bdc5cf;
  max-width: 620px;
  margin: 0 auto 30px;
}

.cta .hero-cta,
.cta-inner .btn-primary,
.cta-inner .hero-cta {
  background: #fff;
  color: var(--ink);
}

.cta-inner .actions {
  justify-content: center;
}

.cta-inner .btn-ghost,
.cta-inner .secondary {
  border-color: #3b4654;
  background: transparent;
  color: #fff;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #7a8492;
  background: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-footer .brand-logo {
  height: 38px;
}

.site-footer h4 {
  display: none;
}

.site-footer a {
  color: #7a8492;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.footer-links a {
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--ink);
}

.legal {
  display: none;
}

.page-hero {
  padding: 80px 0 20px;
  background:
    radial-gradient(circle at 85% 10%, rgba(99, 91, 255, 0.1), transparent 30%),
    #fff;
}

.page-hero h1 {
  max-width: 16ch;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form-note,
.form-status {
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-ok {
  color: var(--accent2);
}

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

.list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

.list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.path-table {
  width: 100%;
  border-collapse: collapse;
}

.path-table th,
.path-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.path-table th {
  color: #98a2b3;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.logo-panel img {
  width: min(160px, 46%);
  height: auto;
}

.step em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.ticker {
  display: none;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.reveal,
.reveal-2,
.reveal-3 {
  animation: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .open-grid,
  .products-grid,
  .product-grid,
  .split,
  .grid4,
  .service-grid,
  .feature-grid,
  .stat-grid,
  .step-grid,
  .principles,
  .case-grid,
  .practice-grid,
  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 75px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav.primary {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  nav.primary.is-open {
    display: flex;
  }

  .cta-inner .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap,
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    height: 70px;
  }

  .brand-logo {
    height: 45px;
  }

  .hero {
    padding: 55px 0 70px;
  }

  h1 {
    font-size: 45px;
  }

  .hero p,
  .lede {
    font-size: 17px;
  }

  .hero-art {
    min-height: 300px;
  }

  .matrix {
    inset: 22px;
    gap: 8px;
  }

  section {
    padding: 72px 0;
  }

  .product {
    min-height: 280px;
  }
}
