:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: #0b0e15;
  --panel-2: #111622;
  --line: #202638;
  --line-soft: #151b28;
  --text: #f4f1ea;
  --muted: #a8a7a0;
  --dim: #6e716e;
  --cobalt: #4e79ff;
  --cobalt-2: #86a6ff;
  --cobalt-soft: rgba(78, 121, 255, 0.13);
  --green: #53d56b;
  --radius: 8px;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background: #05070b;
}

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

a:hover {
  color: var(--cobalt-2);
}

a:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--cobalt);
  color: white;
  transform: translateY(-140%);
}

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

header,
main,
footer {
  max-width: 1190px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  height: 48px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--cobalt-2);
  filter: drop-shadow(0 0 10px rgba(78, 121, 255, 0.5));
}

.brand-mark img {
  width: 22px;
  height: 22px;
}

.brand small {
  padding: 1px 8px 2px;
  border: 1px solid rgba(78, 121, 255, 0.38);
  border-radius: 5px;
  color: var(--cobalt-2);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 42px;
  color: #d6d1c7;
  font-size: 0.88rem;
  font-weight: 520;
}

.nav-cta {
  justify-self: end;
  padding: 7px 18px;
  border: 1px solid rgba(78, 121, 255, 0.65);
  border-radius: 6px;
  color: #bcd0ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 100px;
  align-items: start;
  padding: 48px 0 28px;
}

.hero-copy {
  padding-top: 6px;
}

h1 {
  max-width: 650px;
  font-size: clamp(2.55rem, 3.7vw, 3.35rem);
  line-height: 1.08;
  font-weight: 790;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 640px;
  margin-top: 12px;
  color: #c4c1ba;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-copy p a {
  color: #dbe5ff;
  text-decoration: underline;
  text-decoration-color: rgba(78, 121, 255, 0.45);
  text-underline-offset: 3px;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: #ece8df;
  font-size: 0.88rem;
  font-weight: 650;
}

.btn.primary {
  border-color: #5d84ff;
  background: linear-gradient(180deg, #5b86ff 0%, #426ff1 100%);
  color: white;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-points {
  display: grid;
  gap: 31px;
  padding-top: 9px;
}

.hero-points article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
}

.hero-points span {
  color: var(--cobalt-2);
  font-size: 1.55rem;
  line-height: 1;
}

.hero-points strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hero-points p {
  color: #aaa69e;
  font-size: 0.82rem;
}

.flow {
  display: grid;
  grid-template-columns: 1.18fr 30px 1fr 30px 1.25fr 30px 1fr;
  gap: 0;
  align-items: center;
  min-height: 150px;
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 17, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.flow-step {
  min-height: 112px;
  padding: 10px 8px;
}

small,
.eyebrow,
.panel-title {
  display: block;
  margin-bottom: 10px;
  color: #6f746f;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

.message b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #4c4f58;
  border-radius: 999px;
  color: #d9d6ce;
  font-size: 0.72rem;
}

.message span,
.command {
  padding: 13px 15px;
  border: 1px solid #20283a;
  border-radius: 7px;
  background: #151a28;
  color: #f1eee6;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.flow em {
  display: block;
  margin: 14px 0 0 47px;
  color: #666962;
  font-style: normal;
  font-size: 0.75rem;
}

.flow ul {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
  color: #d2cec4;
  font-size: 0.74rem;
}

.flow li::before,
.integrated::before {
  content: '⊙';
  margin-right: 8px;
  color: #d5d2ca;
}

.build li::before {
  content: '✓';
  color: var(--green);
}

.arrow {
  color: #8d887d;
  font-size: 1.35rem;
  text-align: center;
}

.integrated {
  color: #dad7cf;
  font-size: 0.78rem;
}

.command {
  margin-top: 13px;
}

.command kbd {
  float: right;
  color: #b8b4aa;
  font-family: var(--mono);
}

.command span {
  display: block;
  margin-top: 6px;
  color: #777b82;
  font-family: var(--font);
  font-size: 0.72rem;
}

.app-shot {
  margin-top: 20px;
  padding: 0;
}

.app-shot img {
  width: 100%;
  height: 245px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #070a0f;
  object-fit: cover;
  object-position: top center;
}

.surface-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.surface-strip figure,
.screen-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070a0f;
}

.surface-strip img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
}

.surface-strip figcaption {
  padding: 11px 14px 12px;
  border-top: 1px solid var(--line-soft);
  color: #c7c4bc;
  font-size: 0.82rem;
  font-weight: 650;
}

.screen-card img {
  width: 100%;
  height: 318px;
  object-fit: cover;
  object-position: top center;
}

.cards {
  display: grid;
  gap: 12px;
}

.primary-cards {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.cards article,
.panel,
.mini-terminal,
.support,
.closing {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 18, 27, 0.92), rgba(8, 11, 17, 0.9));
}

.cards article {
  min-height: 130px;
  padding: 22px 22px 18px;
}

.cards article > span {
  float: left;
  margin: 0 18px 50px 0;
  color: var(--cobalt-2);
  font-size: 1.55rem;
}

.cards h2 {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cards p {
  color: #aaa69e;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cards a {
  display: inline-block;
  margin-top: 12px;
  color: var(--cobalt-2);
  font-size: 0.8rem;
  font-weight: 650;
}

.deep {
  margin-top: 64px;
}

.split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.deep h2,
.support h2,
.closing h2 {
  max-width: 520px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-copy,
.support p,
.closing p {
  max-width: 540px;
  margin-top: 14px;
  color: #aaa69e;
  font-size: 0.95rem;
  line-height: 1.7;
}

.mini-terminal {
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.mini-terminal p {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: #c9c7c0;
}

.mini-terminal span,
.mini-terminal b {
  color: var(--cobalt-2);
}

.mini-terminal em {
  display: inline-block;
  min-width: 54px;
  color: #6f746f;
  font-style: normal;
}

.extension-list {
  padding: 10px 14px;
}

.feature-ideas {
  padding: 18px 20px;
}

.feature-ideas ul {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.feature-ideas li {
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  color: #d8d5cc;
  font-size: 0.9rem;
}

.feature-ideas li::before {
  content: '›';
  margin-right: 10px;
  color: var(--cobalt-2);
  font-family: var(--mono);
}

.extension-list > div:not(.panel-title) {
  position: relative;
  padding: 14px 48px 14px 2px;
  border-top: 1px solid var(--line-soft);
}

.extension-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.extension-list span {
  color: #aaa69e;
  font-size: 0.78rem;
}

.extension-list i {
  position: absolute;
  right: 2px;
  top: 18px;
  width: 31px;
  height: 18px;
  border-radius: 999px;
  background: #254fbd;
}

.extension-list i::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e7ecff;
}

.provider {
  padding: 14px 20px;
}

.provider div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.provider div:last-child {
  border-bottom: 0;
}

.provider span {
  color: #aaa69e;
}

.provider strong {
  color: #dee7ff;
}

.support {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-top: 64px;
  padding: 28px;
}

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

.support-grid span {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: #c7c4bc;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.86rem;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding: 12px 22px 14px;
}

.closing h2 {
  font-size: 1.35rem;
}

.closing p {
  margin-top: 2px;
  font-size: 0.9rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 40px;
  color: #777b82;
  font-size: 0.82rem;
}

footer div {
  display: flex;
  gap: 18px;
}

footer a {
  color: #aaa69e;
}

/* docs */

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 190px;
  gap: 38px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 72px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 72px;
}

.docs-sidebar h1 {
  margin-bottom: 24px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.docs-sidebar section {
  margin-bottom: 24px;
}

.docs-sidebar h2,
.docs-toc h2 {
  margin-bottom: 9px;
  color: #6f746f;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-sidebar a,
.docs-toc a,
.docs-toc span {
  display: block;
  padding: 5px 0;
  color: #aaa69e;
  font-size: 0.86rem;
}

.docs-sidebar a.active {
  color: #f4f1ea;
  font-weight: 700;
}

.docs-content {
  max-width: 760px;
  padding-bottom: 40px;
}

.docs-content h1 {
  margin-bottom: 16px;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.docs-content h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.docs-content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.docs-content p,
.docs-content li {
  color: #c3c0b8;
  font-size: 0.96rem;
  line-height: 1.75;
}

.docs-content p,
.docs-content ul,
.docs-content pre,
.docs-content table {
  margin-bottom: 18px;
}

.docs-content ul {
  padding-left: 22px;
}

.docs-content a,
.edit-link a {
  color: #9bb4ff;
}

.docs-content code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #0d121c;
  color: #e7e4db;
  font-family: var(--mono);
  font-size: 0.88em;
}

.docs-content pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090c12;
}

.docs-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
}

.docs-content th,
.docs-content td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  color: #f4f1ea;
  background: #0d121c;
  font-weight: 700;
}

.docs-content td {
  color: #c3c0b8;
}

.docs-content tr:last-child td {
  border-bottom: 0;
}

.edit-link {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 920px) {
  header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .split,
  .split.reverse,
  .support {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
  }

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

  .arrow {
    display: none;
  }

  .primary-cards,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .app-shot img {
    height: auto;
  }

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

  .docs-sidebar,
  .docs-toc {
    position: static;
  }

  .docs-toc {
    display: none;
  }

  .surface-strip {
    grid-template-columns: 1fr;
  }

  .surface-strip img,
  .screen-card img {
    height: auto;
  }
}

@media (max-width: 560px) {
  header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 2.4rem;
  }

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