:root {
  color-scheme: light;
  --ink: #06113f;
  --text: #233150;
  --muted: #65718a;
  --paper: #ffffff;
  --surface: #f5f7fb;
  --line: #d9e0ee;
  --blue: #1479e8;
  --green: #12a875;
  --yellow: #ffc736;
  --orange: #f36f2d;
  --red: #e33838;
  --purple: #6e45b8;
  --cyan: #0d9ec3;
  --lime: #29a947;
  --shadow: 0 20px 70px rgba(17, 34, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff, rgba(245, 247, 251, 0.96) 46rem),
    var(--paper);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2rem);
  padding: 1.18rem clamp(1rem, 4vw, 3.2rem);
  border-bottom: 1px solid rgba(217, 224, 238, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 2.9rem;
  height: 2.5rem;
}

.block {
  position: absolute;
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 0.26rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.block-blue {
  left: 0;
  top: 0.85rem;
  background: var(--blue);
}

.block-green {
  left: 0.78rem;
  top: 1.24rem;
  background: var(--green);
}

.block-yellow {
  left: 1.56rem;
  top: 0.85rem;
  background: var(--yellow);
}

.block-violet {
  left: 0.78rem;
  top: 0;
  background: var(--purple);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.55rem, 2vw, 1.4rem);
}

.topnav a,
.topic-index a,
.button,
.panel-link,
.nav-cta,
.footer a {
  border-radius: 999px;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.topnav a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.56rem 0.45rem;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: #eef3ff;
  color: var(--ink);
}

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

.search-shell {
  display: grid;
  grid-template-columns: auto minmax(9rem, 15.5rem) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.05rem;
  border: 1px solid rgba(6, 17, 63, 0.16);
  border-radius: 0.65rem;
  background: var(--paper);
  color: #52617d;
  padding: 0 0.72rem;
  box-shadow: 0 8px 26px rgba(17, 34, 76, 0.1);
}

.search-shell:focus-within {
  border-color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(20, 121, 232, 0.14),
    0 8px 26px rgba(17, 34, 76, 0.1);
}

.search-shell svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
}

.search-shell kbd {
  display: inline-grid;
  min-width: 2rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.32rem;
  background: #f6f8fc;
  color: #4a5874;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-cta {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #14205b;
  transform: translateY(-1px);
}

main {
  overflow: hidden;
}

.platform,
.use-cases,
.docs,
.quickstart,
.principles,
.closer {
  padding: clamp(3rem, 6vw, 5.8rem) clamp(1rem, 4vw, 3.5rem);
}

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 0;
  background: #d6edff;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  top: 9%;
  left: 0;
  width: 39%;
  padding: 0 0 0 clamp(1.5rem, 4vw, 4rem);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(214, 237, 255, 0.8), rgba(214, 237, 255, 0) 43%);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.05;
}

h1 {
  max-width: 58rem;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 6.2rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy h1 span {
  white-space: nowrap;
}

.hero-copy p:not(.eyebrow) {
  max-width: 52rem;
  margin-bottom: 0;
  color: #33456b;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button,
.panel-link {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0.72rem 1rem;
  font-weight: 900;
}

.button:hover,
.button:focus-visible,
.panel-link:hover,
.panel-link:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #14205b;
}

.button-secondary,
.panel-link {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.panel-link:hover,
.panel-link:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-facts div,
.map-panel,
.terminal-block {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(17, 34, 76, 0.08);
}

.hero-facts div {
  padding: 1rem;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  color: var(--ink);
  font-size: 1rem;
}

.hero-facts span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.poster-map {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 0;
  background: #dbeeff;
  box-shadow: none;
  isolation: isolate;
}

.poster-map img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  outline: none;
}

.hotspot::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translate(-50%, 0.35rem);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(6, 17, 63, 0.14);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  content: attr(data-label) " ->";
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.36rem 0.55rem;
  box-shadow: 0 10px 28px rgba(6, 17, 63, 0.18);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 4px rgba(20, 121, 232, 0.35),
    inset 0 0 0 999px rgba(20, 121, 232, 0.08);
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hotspot-architecture {
  z-index: 1;
}

.hotspot:not(.hotspot-architecture) {
  z-index: 3;
}

.hotspot-tools {
  left: 57%;
  top: 24%;
  width: 10.3%;
  height: 7%;
}

.hotspot-memory {
  left: 68.5%;
  top: 25%;
  width: 11.2%;
  height: 7%;
}

.hotspot-automations {
  left: 78%;
  top: 32.5%;
  width: 11.5%;
  height: 7.5%;
}

.hotspot-agents {
  left: 41.6%;
  top: 41.5%;
  width: 11%;
  height: 6%;
}

.hotspot-integrations {
  left: 42%;
  top: 48%;
  width: 12.2%;
  height: 5.4%;
}

.hotspot-permissions {
  left: 42%;
  top: 54%;
  width: 12.2%;
  height: 5.1%;
}

.hotspot-orchestration {
  left: 42%;
  top: 60%;
  width: 12.2%;
  height: 5.3%;
}

.hotspot-learning {
  left: 42%;
  top: 66%;
  width: 12.2%;
  height: 5.2%;
}

.hotspot-architecture {
  left: 55%;
  top: 34%;
  width: 26%;
  height: 37%;
}

.hotspot-channels {
  left: 30.5%;
  top: 69%;
  width: 8%;
  height: 14%;
}

.hotspot-docs-sign {
  left: 91%;
  top: 75.5%;
  width: 8.5%;
  height: 5.5%;
}

.topic-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topic-index a {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  padding: 0.64rem 0.85rem;
}

.topic-index a:hover,
.topic-index a:focus-visible {
  border-color: var(--ink);
  background: #eef3ff;
}

.section-heading {
  max-width: 56rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.platform {
  background: var(--paper);
}

.use-cases {
  background: var(--surface);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.use-case-grid .pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "image title"
    "image description";
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 0.75rem;
  padding-top: 1rem;
}

.use-case-grid .pillar h3 {
  grid-area: title;
  margin-bottom: 0;
}

.use-case-grid .pillar p {
  grid-area: description;
  align-self: start;
  margin-bottom: 0;
}

.use-case-image {
  grid-area: image;
  display: block;
  width: 9rem;
  max-width: 100%;
  height: 9rem;
  object-fit: contain;
  margin-bottom: 0;
}

.use-case-workflow {
  margin-top: 2.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--paper);
}

.use-case-workflow h3 {
  font-size: 1.15rem;
}

.use-case-workflow ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.use-case-workflow li:not(:last-child)::after {
  content: " →";
  margin-left: 1rem;
  color: var(--blue);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  border-top: 0.45rem solid var(--accent, var(--blue));
  padding-top: 1.1rem;
}

.pillar h3 {
  font-size: 1.45rem;
}

.pillar p {
  color: var(--muted);
}

.pillar .doc-read {
  margin-top: auto;
  color: #0758b0;
  font-weight: 800;
  text-decoration: none;
}

.pillar .doc-read:hover,
.pillar .doc-read:focus-visible {
  text-decoration: underline;
}

.flow-title {
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 1rem;
  font-size: 1.3rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.flow-step {
  position: relative;
  min-height: 9rem;
  padding: 1rem;
  border-top: 0.45rem solid var(--blue);
  background: var(--surface);
}

.flow-step:nth-child(2) {
  border-color: var(--purple);
}

.flow-step:nth-child(3) {
  border-color: var(--yellow);
}

.flow-step:nth-child(4) {
  border-color: var(--green);
}

.flow-step span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.flow-step strong {
  display: block;
  margin-top: 2.4rem;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.16;
}

.flow-station {
  background: #fff6d6;
}

.accent-red {
  --accent: var(--red);
}

.accent-green {
  --accent: var(--green);
}

.accent-blue {
  --accent: var(--blue);
}

.accent-purple {
  --accent: var(--purple);
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-yellow {
  --accent: var(--yellow);
}

.accent-orange {
  --accent: var(--orange);
}

.quickstart {
  background: #07113f;
  color: white;
}

.quickstart h2,
.quickstart .eyebrow {
  color: white;
}

.quickstart .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.terminal-block {
  overflow: auto;
  border-color: rgba(255, 255, 255, 0.16);
  background: #0f1c56;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

pre {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}

code {
  color: #f7fbff;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.8;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.principle-list div {
  border-left: 0.38rem solid var(--accent, var(--blue));
  padding: 0.2rem 0 0.2rem 1rem;
}

.principle-list div:nth-child(2) {
  --accent: var(--green);
}

.principle-list div:nth-child(3) {
  --accent: var(--orange);
}

.principle-list div:nth-child(4) {
  --accent: var(--purple);
}

.principle-list h3 {
  font-size: 1.18rem;
}

.principle-list p {
  color: var(--muted);
}

.closer {
  background: #d6edff;
  text-align: center;
}

.closer h2 {
  margin-inline: auto;
  max-width: 40rem;
}

.closer p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0 auto;
  color: #33456b;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .principle-list,
  .pillar-grid,
  .flow {
    grid-template-columns: 1fr;
  }

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

  .brand,
  .topnav,
  .nav-actions {
    justify-self: start;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-shell {
    grid-template-columns: auto minmax(8rem, 1fr) auto;
    flex: 1 1 18rem;
  }

  .flow-step {
    min-height: auto;
  }

  .flow-step strong {
    margin-top: 1.2rem;
  }
}

@media (max-width: 680px) {
  .topnav {
    justify-content: flex-start;
    gap: 0.3rem 0.8rem;
  }

  .topnav a {
    padding-inline: 0;
  }

  .nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-shell,
  .nav-cta {
    flex: 0 0 auto;
    width: 100%;
  }

  h1 {
    font-size: 2.45rem;
  }

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

  .hotspot::after {
    display: none;
  }

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

@media (max-width: 900px) {
  .hero-copy {
    position: relative;
    top: auto;
    width: 100%;
    padding: 2.5rem 1.5rem 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 4.5rem);
  }

  .hero-copy p {
    max-width: 34rem;
  }

  .hero::after {
    display: none;
  }

  .poster-map {
    width: 150%;
    margin-left: -50%;
  }

  .poster-map::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(#d6edff, transparent 24%);
  }

  .hero-actions .button {
    width: auto;
  }
}
