:root {
  color-scheme: dark;
  --background: #0d0d12;
  --background-deep: #09090d;
  --card: #141419;
  --card-soft: #18181f;
  --foreground: #f5f5f6;
  --muted: #9998a5;
  --border: #28272f;
  --border-soft: #202027;
  --primary: #a78bfa;
  --primary-strong: #8b5cf6;
  --agent: #b196fa;
  --command: #38bdf8;
  --rule: #f8b84e;
  --skill: #4ad69a;
  --radius: 14px;
  --shadow: 0 30px 80px rgb(0 0 0 / 45%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 1.6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.6%) 1px, transparent 1px),
    var(--background);
  background-size: 56px 56px;
  color: var(--foreground);
  line-height: 1.6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow-one {
  top: -280px;
  right: -200px;
  background: var(--primary-strong);
}

.page-glow-two {
  top: 900px;
  left: -500px;
  background: #532bb0;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand > span > span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
footer a {
  transition: color 160ms ease;
}

nav a:hover,
footer a:hover {
  color: var(--foreground);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  background: var(--primary-strong);
  box-shadow: 0 10px 35px rgb(139 92 246 / 28%);
  color: white;
}

.button-primary:hover {
  background: #9a6cf8;
}

.button-secondary,
.button-ghost {
  border-color: var(--border);
  background: rgb(255 255 255 / 3%);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: #3e3b49;
  background: rgb(255 255 255 / 6%);
}

.hero {
  display: grid;
  min-height: 730px;
  align-items: center;
  padding: 80px 0 92px;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 52px;
}

.eyebrow,
.kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgb(167 139 250 / 23%);
  border-radius: 999px;
  background: rgb(139 92 246 / 7%);
  letter-spacing: 0.06em;
  text-transform: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50d99b;
  box-shadow: 0 0 12px #50d99b;
}

.hero h1 {
  max-width: 630px;
  margin: 25px 0 18px;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: #b1b0ba;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: #797883;
  font-size: 12px;
}

.platforms strong {
  color: #a7a6af;
  font-weight: 550;
}

.platforms i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #55545d;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.orbital-mark {
  position: absolute;
  top: -160px;
  right: -80px;
  z-index: -1;
  width: 420px;
  opacity: 0.17;
  filter: saturate(0.7);
}

.orbital-mark img {
  width: 100%;
}

.app-window {
  overflow: hidden;
  border: 1px solid #34323d;
  border-radius: 14px;
  background: #0d0d11;
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

.window-bar {
  display: grid;
  height: 38px;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid #222128;
  background: #16161b;
  color: #777680;
  font-size: 9px;
  grid-template-columns: 1fr auto 1fr;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4851;
}

.traffic-lights span:first-child {
  background: #e25b55;
}

.traffic-lights span:nth-child(2) {
  background: #e0b14b;
}

.traffic-lights span:nth-child(3) {
  background: #53bc68;
}

.window-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.window-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--skill);
}

.app-shell {
  display: grid;
  min-height: 427px;
  grid-template-columns: 145px 1fr;
}

.app-sidebar {
  padding: 15px 10px;
  border-right: 1px solid #222128;
  background: #101014;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 0 6px;
}

.mini-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.mini-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mini-brand strong {
  font-size: 9px;
}

.mini-brand small {
  color: #65646e;
  font-size: 7px;
}

.sidebar-link {
  display: flex;
  height: 25px;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  border-radius: 5px;
  color: #888791;
  font-size: 8px;
}

.sidebar-link.active {
  background: rgb(139 92 246 / 16%);
  color: #d8ccfc;
}

.sidebar-link em {
  margin-left: auto;
  color: #5f5e67;
  font-style: normal;
}

.sidebar-icon {
  width: 10px;
  color: #9b8fbd;
  text-align: center;
}

.sidebar-label {
  display: block;
  margin: 15px 7px 5px;
  color: #4f4e57;
  font-size: 6px;
  letter-spacing: 0.14em;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.agent {
  background: var(--agent);
  color: var(--agent);
}

.command {
  background: var(--command);
  color: var(--command);
}

.rule {
  background: var(--rule);
  color: var(--rule);
}

.skill {
  background: var(--skill);
  color: var(--skill);
}

.app-content {
  min-width: 0;
}

.app-topbar {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #222128;
  color: #aaa9b2;
  font-size: 8px;
}

.app-topbar div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-topbar button {
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: var(--primary-strong);
  color: white;
  font: inherit;
}

.dashboard {
  padding: 22px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dashboard-heading h2 {
  margin: 0;
  font-size: 15px;
}

.dashboard-heading p {
  margin: 1px 0 0;
  color: #686771;
  font-size: 7px;
}

.dashboard-heading > span {
  padding: 3px 7px;
  border: 1px solid rgb(74 214 154 / 16%);
  border-radius: 999px;
  background: rgb(74 214 154 / 7%);
  color: var(--skill);
  font-size: 6px;
}

.stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.stat-grid article,
.recent-card,
.graph-card {
  border: 1px solid #25242c;
  border-radius: 7px;
  background: #141419;
}

.stat-grid article {
  display: grid;
  min-width: 0;
  padding: 10px;
  grid-template-columns: auto 1fr;
}

.stat-grid article .dot {
  width: 6px;
  height: 6px;
  margin-top: 2px;
}

.stat-grid article span {
  margin-left: 5px;
  color: #81808a;
  font-size: 7px;
}

.stat-grid article strong {
  margin-top: 4px;
  font-size: 18px;
  grid-column: 1 / -1;
}

.stat-grid article small {
  overflow: hidden;
  color: #5f5e67;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 1 / -1;
}

.dashboard-grid {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  grid-template-columns: 1.5fr 0.8fr;
}

.recent-card,
.graph-card {
  padding: 11px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 7px;
}

.card-heading span {
  color: var(--primary);
}

.artifact-row {
  display: grid;
  align-items: center;
  gap: 5px;
  padding: 6px 3px;
  border-top: 1px solid #201f26;
  font-size: 6px;
  grid-template-columns: auto auto 1fr;
}

.artifact-row .dot {
  width: 5px;
  height: 5px;
}

.artifact-row small {
  overflow: hidden;
  color: #61606a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-card {
  display: flex;
  flex-direction: column;
  font-size: 7px;
}

.graph-card small {
  color: #61606a;
  font-size: 6px;
}

.mini-graph {
  position: relative;
  flex: 1;
  min-height: 66px;
}

.node {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.n1 {
  top: 12px;
  left: 25%;
}

.n2 {
  top: 18px;
  right: 18%;
  background: var(--command);
}

.n3 {
  bottom: 9px;
  left: 45%;
  background: var(--rule);
}

.n4 {
  right: 34%;
  bottom: 27px;
  background: var(--skill);
}

.line {
  position: absolute;
  height: 1px;
  background: #4b3d73;
  transform-origin: left;
}

.l1 {
  top: 16px;
  left: 28%;
  width: 51%;
  transform: rotate(6deg);
}

.l2 {
  top: 18px;
  left: 27%;
  width: 39%;
  transform: rotate(51deg);
}

.l3 {
  right: 21%;
  bottom: 29px;
  width: 31%;
  transform: rotate(-30deg);
}

.trust-strip {
  display: grid;
  margin-bottom: 120px;
  border-block: 1px solid var(--border-soft);
  grid-template-columns: repeat(3, 1fr);
}

.trust-strip > div {
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  border-right: 1px solid var(--border-soft);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip strong {
  font-size: 13px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 40px 0 120px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 44px;
}

.section-heading h2,
.workflow-copy h2,
.cta h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgb(255 255 255 / 2.5%), transparent 50%),
    var(--card);
  grid-column: span 2;
}

.feature-card.featured {
  grid-column: span 4;
}

.feature-card h3 {
  margin: 17px 0 8px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

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

.feature-card code,
.artifact-card code {
  color: #c7b7f9;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.feature-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: rgb(255 255 255 / 3%);
  font-size: 18px;
}

.feature-icon.violet {
  color: var(--agent);
}

.feature-icon.blue {
  color: var(--command);
}

.feature-icon.green {
  color: var(--skill);
}

.feature-icon.amber {
  color: var(--rule);
}

.feature-tag {
  position: absolute;
  top: 25px;
  left: 76px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(167 139 250 / 9%);
  color: var(--primary);
  font-size: 10px;
}

.chat-demo {
  position: absolute;
  right: 23px;
  bottom: 20px;
  width: 48%;
  padding: 15px;
  border: 1px solid #2b2934;
  border-radius: 10px;
  background: #101015;
}

.chat-line {
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 10px;
}

.chat-line.user {
  margin-left: 20px;
  background: #22202a;
}

.chat-line.user b {
  color: var(--primary);
}

.chat-line.assistant {
  display: flex;
  width: 64px;
  gap: 5px;
  margin-top: 9px;
  background: rgb(139 92 246 / 9%);
}

.chat-line.assistant i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.context-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.context-pills span {
  padding: 2px 6px;
  border: 1px solid #2d2b36;
  border-radius: 999px;
  color: #8d8b96;
  font-size: 7px;
}

.flow-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
  color: #5d5b67;
  font-size: 11px;
}

.flow-demo span {
  padding: 7px 8px;
  border: 1px solid #2d2c34;
  border-radius: 6px;
  background: #101015;
  color: #aaa7b4;
}

.approval-demo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 27px;
  padding: 12px;
  border: 1px solid rgb(248 184 78 / 20%);
  border-radius: 8px;
  background: rgb(248 184 78 / 4%);
  font-size: 9px;
}

.approval-demo small {
  color: var(--rule);
}

.approval-demo div {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 5px;
}

.approval-demo div span,
.approval-demo div b {
  padding: 3px 7px;
  border: 1px solid #34323c;
  border-radius: 4px;
}

.approval-demo div b {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.artifacts-section {
  padding-top: 70px;
}

.section-heading.centered {
  display: flex;
  max-width: 700px;
  align-items: center;
  flex-direction: column;
  gap: 0;
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered p {
  margin-top: 13px;
}

.artifact-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, 1fr);
}

.artifact-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-top: 2px solid;
  border-radius: var(--radius);
  background: var(--card);
}

.artifact-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4f4e58;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.artifact-card .dot {
  width: 9px;
  height: 9px;
}

.artifact-card h3 {
  margin: 40px 0 8px;
  font-size: 22px;
}

.artifact-card p {
  min-height: 67px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.artifact-card code {
  display: block;
  margin-top: 19px;
  font-size: 10px;
}

.agent-card {
  border-top-color: var(--agent);
}

.command-card {
  border-top-color: var(--command);
}

.rule-card {
  border-top-color: var(--rule);
}

.skill-card {
  border-top-color: var(--skill);
}

.workflow-section {
  display: grid;
  align-items: center;
  gap: 90px;
  padding-top: 100px;
  grid-template-columns: 0.85fr 1.15fr;
}

.workflow-copy > p {
  max-width: 510px;
  margin: 20px 0 33px;
  color: var(--muted);
}

.workflow-copy ol {
  display: grid;
  gap: 19px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-copy li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.workflow-copy li > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(167 139 250 / 25%);
  border-radius: 50%;
  background: rgb(139 92 246 / 8%);
  color: var(--primary);
  font-size: 11px;
}

.workflow-copy li div {
  display: flex;
  flex-direction: column;
}

.workflow-copy li strong {
  font-size: 14px;
}

.workflow-copy li small {
  color: var(--muted);
}

.code-window {
  overflow: hidden;
  border: 1px solid #34323d;
  border-radius: var(--radius);
  background: #101015;
  box-shadow: var(--shadow);
}

.code-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid #25242b;
  background: #17171c;
}

.code-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f4d56;
}

.code-bar span:first-child {
  background: #d95c57;
}

.code-bar span:nth-child(2) {
  background: #ddb04b;
}

.code-bar span:nth-child(3) {
  background: #51b668;
}

.code-bar em {
  margin-left: 12px;
  color: #777680;
  font-size: 10px;
  font-style: normal;
}

.code-window pre {
  min-height: 370px;
  margin: 0;
  overflow-x: auto;
  padding: 28px;
  color: #c4c2cb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.75;
}

.code-muted {
  color: #55535e;
}

.code-key,
.code-title {
  color: var(--agent);
}

.code-title {
  font-weight: 700;
}

.code-green {
  color: var(--skill);
}

.code-amber {
  color: var(--rule);
}

.code-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #25242b;
  color: #76747e;
  font-size: 9px;
}

.code-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--skill);
}

.code-footer strong {
  color: #9d9ba5;
}

.cta {
  position: relative;
  overflow: hidden;
  margin: 50px 0 90px;
  padding: 80px 30px;
  border: 1px solid #332f41;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgb(139 92 246 / 19%), transparent 52%),
    var(--card);
  text-align: center;
}

.cta > img {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 500px;
  opacity: 0.05;
  transform: translateX(-50%);
}

.cta h2,
.cta p,
.cta .kicker,
.cta .hero-actions {
  position: relative;
}

.cta p {
  margin: 17px 0 0;
  color: var(--muted);
}

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

footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  flex: 1;
}

footer > div {
  display: flex;
  gap: 22px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .feature-card,
  .feature-card.featured {
    grid-column: span 3;
  }

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

  .workflow-section {
    gap: 50px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  nav {
    display: none;
  }

  .header-github {
    min-height: 36px;
    padding-inline: 12px;
  }

  .hero {
    min-height: 0;
    padding: 60px 0 70px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    display: none;
  }

  .trust-strip {
    margin-bottom: 80px;
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-bottom: 85px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-heading > p {
    max-width: none;
  }

  .feature-card,
  .feature-card.featured {
    min-height: 250px;
    grid-column: 1 / -1;
  }

  .chat-demo {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 24px;
  }

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

  .artifact-card p {
    min-height: 0;
  }

  .workflow-section {
    padding-top: 40px;
  }

  .code-window pre {
    min-height: auto;
    padding: 19px;
    font-size: 10px;
  }

  .cta {
    padding: 60px 20px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 35px 0;
  }

  footer p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
