:root {
  --ink: #17122f;
  --muted: #625a78;
  --bg: #fbf8ff;
  --surface: #ffffff;
  --line: #eadff7;
  --purple: #6d28d9;
  --purple-2: #8b5cf6;
  --purple-3: #a855f7;
  --blue: #5167f6;
  --deep: #231047;
  --soft: #f4ecff;
  --soft-2: #f8f3ff;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

main {
  position: relative;
  overflow: hidden;
}

main::before {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(124deg, rgba(109, 40, 217, 0.12), transparent 34%),
    linear-gradient(236deg, rgba(81, 103, 246, 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 58%, #ffffff 100%);
}

main > * {
  position: relative;
}

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

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(234, 223, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 8px;
  font-size: 0;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border: 1.5px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.brand-mark::before {
  width: 20px;
  height: 10px;
  transform: rotate(-28deg);
}

.brand-mark::after {
  width: 10px;
  height: 20px;
  transform: rotate(28deg);
}

.brand-text {
  font-size: 17px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #3f3658;
  font-size: 14px;
  font-weight: 800;
}

.nav-links > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
}

.nav-item {
  position: relative;
}

.nav-item > a::after {
  width: 7px;
  height: 7px;
  margin-left: 7px;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-links a:hover,
.nav-link-secondary:hover {
  color: var(--purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav-link-secondary {
  color: #3f3658;
  font-size: 14px;
  font-weight: 850;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(109, 40, 217, 0.18);
}

.mega-menu {
  position: absolute;
  top: 68px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 18px;
  width: min(560px, calc(100vw - 64px));
  padding: 22px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(72, 45, 128, 0.16);
  transform: translate(-50%, 8px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.mega-menu-wide {
  grid-template-columns: 1.1fr repeat(2, minmax(180px, 1fr));
  width: min(820px, calc(100vw - 64px));
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-feature {
  min-height: 210px;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #4c1d95, var(--purple));
  border-radius: var(--radius);
}

.mega-feature span,
.mega-column span {
  display: block;
  margin-bottom: 10px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mega-feature strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.18;
}

.mega-feature p {
  color: #efe8ff;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.mega-column a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 10px;
  color: #3f3658;
  border-radius: 6px;
  font-weight: 800;
}

.mega-column a:hover {
  color: var(--purple);
  background: var(--soft);
}

.hero,
.section,
.footer-cta,
.footer-sitemap,
.footer-bottom {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(700px, 1.32fr);
  gap: 38px;
  align-items: center;
  padding: 64px 0 34px;
}

.hero-copy {
  max-width: 660px;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 16px 32px rgba(109, 40, 217, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.hero-visual {
  align-self: end;
  overflow: hidden;
  padding: 0 0 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(168, 85, 247, 0.2), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8f2ff);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(72, 45, 128, 0.14);
}

.hero-runtime svg {
  display: block;
  width: 100%;
  min-height: 390px;
  height: auto;
}

.runtime-bg {
  fill: #fbf8ff;
}

.runtime-grid path {
  stroke: rgba(109, 40, 217, 0.08);
  stroke-width: 1;
}

.runtime-flow {
  opacity: 0.22;
  stroke-width: 2.2;
  stroke-dasharray: 5 8;
  transition:
    opacity 0.2s ease,
    stroke-width 0.2s ease,
    stroke-dasharray 0.2s ease;
}

.runtime-flow-ai {
  stroke: url("#runtime-flow-ai");
}

.runtime-flow-api {
  stroke: url("#runtime-flow-api");
}

.hero-runtime[data-mode="ai"] .runtime-flow-ai,
.hero-runtime[data-mode="api"] .runtime-flow-api {
  opacity: 0.95;
  stroke-width: 3;
  stroke-dasharray: none;
}

.runtime-side > text {
  fill: #7a6b99;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.runtime-node rect {
  fill: rgba(255, 255, 255, 0.8);
  stroke: rgba(139, 92, 246, 0.24);
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

.runtime-node text {
  fill: #3f3658;
  font-size: 14px;
  font-weight: 850;
  text-anchor: middle;
}

.runtime-node-ai rect {
  stroke: rgba(168, 85, 247, 0.36);
}

.runtime-node {
  opacity: 0.52;
  transition: opacity 0.2s ease;
}

.hero-runtime[data-mode="ai"] .runtime-node-ai,
.hero-runtime[data-mode="api"] .runtime-node-api {
  opacity: 1;
}

.hero-runtime[data-mode="ai"] .runtime-node-ai rect {
  fill: rgba(168, 85, 247, 0.12);
  stroke: rgba(168, 85, 247, 0.5);
}

.hero-runtime[data-mode="api"] .runtime-node-api rect {
  fill: rgba(81, 103, 246, 0.1);
  stroke: rgba(81, 103, 246, 0.46);
}

.runtime-platform > rect {
  fill: #ffffff;
  stroke: rgba(139, 92, 246, 0.22);
}

.runtime-kicker {
  fill: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-anchor: middle;
}

.runtime-title {
  fill: #24133f;
  font-size: 16px;
  font-weight: 850;
  text-anchor: middle;
}

.runtime-block rect {
  fill: #f6efff;
  stroke: rgba(139, 92, 246, 0.18);
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

.runtime-block-ai rect {
  fill: rgba(168, 85, 247, 0.12);
  stroke: rgba(168, 85, 247, 0.36);
}

.runtime-block-api rect {
  fill: rgba(81, 103, 246, 0.1);
  stroke: rgba(81, 103, 246, 0.3);
}

.hero-runtime[data-mode="ai"] .runtime-block-ai rect {
  fill: rgba(168, 85, 247, 0.18);
  stroke: rgba(168, 85, 247, 0.56);
}

.hero-runtime[data-mode="api"] .runtime-block-api rect {
  fill: rgba(81, 103, 246, 0.16);
  stroke: rgba(81, 103, 246, 0.54);
}

.runtime-block-title {
  fill: #24133f;
  font-size: 17px;
  font-weight: 950;
}

.runtime-block-subtitle {
  fill: #6f6289;
  font-size: 12px;
  font-weight: 750;
}

.runtime-cap-row circle {
  fill: #8b5cf6;
  opacity: 0.62;
}

.runtime-cap-row text {
  fill: #6f6289;
  font-size: 12px;
  font-weight: 850;
}

.runtime-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -18px;
}

.runtime-tabs button {
  min-width: 74px;
  height: 36px;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.runtime-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading-nowrap {
  max-width: none;
}

.section-heading-nowrap h2 {
  white-space: nowrap;
}

.ledger-heading {
  max-width: none;
}

.ledger-heading p:not(.eyebrow) {
  white-space: nowrap;
}

.section-heading p,
.split-section > p,
.product-why-intro > p,
.product-card p,
.product-card li,
.capability-grid p,
.pricing-grid p,
.architecture-panel p,
.start-grid p,
.resource-grid p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 54px;
  align-items: start;
}

.split-section > p {
  margin-top: 40px;
  font-size: 21px;
}

.action-grid,
.product-grid,
.capability-grid,
.pricing-grid,
.start-grid,
.resource-grid {
  display: grid;
  gap: 16px;
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 20px;
}

.action-grid article,
.product-card,
.capability-grid article,
.pricing-grid article,
.start-grid a,
.resource-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.92));
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(72, 45, 128, 0.08);
}

.action-grid article {
  min-height: 230px;
  padding: 28px;
}

.method-card-head span,
.start-grid span {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--purple);
  background: var(--soft);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
}

.action-grid h3 {
  font-size: 34px;
}

.method-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.method-card-head svg {
  width: 28px;
  height: 28px;
  color: var(--purple);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

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

.product-why {
  padding-top: 56px;
  padding-bottom: 22px;
}

.product-why-intro {
  max-width: 960px;
  margin-bottom: 20px;
}

.product-why-intro h3 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.product-why-intro > p {
  margin: 18px 0 0;
  font-size: 19px;
  white-space: nowrap;
}

.product-method-grid {
  padding-top: 0;
}

.product-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: 34px;
  border-top: 6px solid var(--blue);
}

.product-card-primary {
  border-top-color: var(--purple);
}

.product-kicker {
  margin-bottom: 10px;
  color: var(--purple) !important;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 44px;
}

.product-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 20px;
}

.product-card li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--purple);
  border-radius: 50%;
}

.product-card a {
  margin-top: auto;
  color: var(--purple);
  font-weight: 950;
}

.platform-section,
.pricing-section {
  width: min(100%, 100%);
  padding: 78px max(28px, calc((100vw - 1240px) / 2));
}

.platform-section {
  background:
    radial-gradient(circle at 15% 12%, rgba(168, 85, 247, 0.18), transparent 34%),
    #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.capability-grid article,
.pricing-grid article,
.resource-grid article {
  min-height: 220px;
  padding: 26px;
}

.capability-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.capability-title h3 {
  margin-bottom: 0;
}

.capability-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
}

.capability-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.resource-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.resource-grid article::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 138px;
  height: 138px;
  content: "";
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 68%);
}

.resource-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  place-items: center;
  color: var(--purple);
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(72, 45, 128, 0.1);
}

.resource-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.capability-grid h3,
.pricing-grid h3 {
  color: var(--purple);
}

.pricing-section {
  background: linear-gradient(180deg, #fbf8ff, #ffffff);
}

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

.architecture-section {
  padding-top: 38px;
  padding-bottom: 38px;
}

.architecture-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #4c1d95, var(--purple), var(--blue));
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(91, 33, 182, 0.22);
}

.architecture-panel .eyebrow,
.footer-cta .eyebrow {
  color: #ddd6fe;
}

.architecture-panel p {
  margin: 0;
  color: #f4edff;
  font-size: 19px;
}

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

.start-grid a {
  display: block;
  min-height: 250px;
  padding: 28px;
}

.start-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 25px;
}

.footer-cta .button-primary {
  color: var(--purple);
  background: #ffffff;
  box-shadow: none;
}

.site-footer {
  color: #ebe5ff;
  background:
    radial-gradient(circle at 88% 0%, rgba(168, 85, 247, 0.2), transparent 34%),
    #17092f;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 74px 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-cta h2 {
  max-width: none;
  white-space: nowrap;
}

.footer-sitemap {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 44px 0 54px;
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand .brand-mark {
  background: #ffffff;
}

.footer-brand .brand-mark::before,
.footer-brand .brand-mark::after {
  border-color: var(--purple);
}

.footer-brand p {
  max-width: 260px;
  margin-top: 18px;
  color: #cfc4eb;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
}

.footer-column a,
.footer-bottom a {
  color: #cfc4eb;
  font-size: 14px;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 34px;
  color: #cfc4eb;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 28px;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }

  .nav-links > a,
  .nav-item > a {
    min-height: 30px;
  }

  .mega-menu {
    display: none;
  }

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

  .hero,
  .split-section,
  .architecture-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
  }

  .product-grid,
  .capability-grid,
  .pricing-grid,
  .start-grid,
  .resource-grid,
  .footer-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }

  .footer-cta h2 {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .hero,
  .section,
  .footer-cta,
  .footer-sitemap,
  .footer-bottom {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    position: static;
  }

  .nav-links {
    display: none;
  }

  .nav-link-secondary {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 33px;
  }

  .section-heading-nowrap h2 {
    white-space: normal;
  }

  .ledger-heading p:not(.eyebrow) {
    white-space: normal;
  }

  .hero-lead,
  .split-section > p,
  .product-why-intro > p {
    font-size: 17px;
  }

  .product-why-intro > p {
    white-space: normal;
  }

  .action-grid,
  .product-grid,
  .capability-grid,
  .pricing-grid,
  .start-grid,
  .resource-grid,
  .footer-sitemap {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .product-card,
  .architecture-panel {
    padding: 22px;
  }

  .hero-runtime {
    padding: 0 0 14px;
  }

  .hero-runtime svg {
    min-height: 0;
  }

  .runtime-tabs {
    margin-top: -8px;
  }

  .runtime-tabs button {
    min-width: 64px;
    height: 32px;
    font-size: 12px;
  }
  .product-card {
    min-height: 0;
  }

  .platform-section,
  .pricing-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
