:root {
  color-scheme: dark;
  --base: #0a0a0b;
  --raised: #111115;
  --panel: #17181c;
  --panel-2: #f7f9f7;
  --ink: #f6f8f7;
  --ink-muted: #b7beb9;
  --ink-soft: #6c746f;
  --line: rgba(246, 248, 247, 0.12);
  --line-light: rgba(15, 16, 17, 0.1);
  --green: #10b981;
  --green-deep: #059669;
  --slack-purple: #4a154b;
  --slack-blue: #36c5f0;
  --slack-yellow: #ecb22e;
  --slack-red: #e01e5a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --max: 1180px;
  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;
  background: var(--base);
  color: var(--ink);
}

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

.site-header {
  align-items: center;
  background: rgba(10, 10, 11, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 18px 32px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 14px;
}

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

.nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-cta {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--base);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  padding: 0 16px;
}

.hero {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  margin: 0 auto;
  max-width: var(--max);
  min-height: 760px;
  padding: 118px 32px 80px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 185, 129, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0 32px auto;
  height: 520px;
  mask-image: linear-gradient(to bottom, black, transparent);
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  align-self: center;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 64px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 24px;
}

h2 {
  font-size: 42px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--ink-muted);
  font-size: 21px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 660px;
}

.hero-actions,
.setup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  height: 46px;
  justify-content: center;
  padding: 0 18px;
}

.button.primary {
  background: var(--green);
  color: #04130d;
}

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

.thread-stage {
  align-self: center;
  background: rgba(17, 17, 21, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  z-index: 1;
}

.thread-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}

.thread-head span:not(.slack-mark span) {
  color: var(--ink-soft);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.slack-mark {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 13px);
  height: 30px;
  width: 30px;
}

.slack-mark span {
  border-radius: 4px;
  display: block;
}

.slack-mark span:nth-child(1) {
  background: var(--slack-blue);
}

.slack-mark span:nth-child(2) {
  background: var(--slack-green, var(--green));
}

.slack-mark span:nth-child(3) {
  background: var(--slack-yellow);
}

.slack-mark span:nth-child(4) {
  background: var(--slack-red);
}

.message {
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
  padding: 20px 0 0;
}

.message p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.message strong {
  color: var(--ink);
}

.avatar {
  align-items: center;
  background: #24252a;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.avatar.rec {
  background: var(--green);
  color: #04130d;
}

.message ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.message li {
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  padding: 9px 10px;
}

.runtime-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.runtime-strip span {
  background: #0d0d10;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  padding: 10px;
  text-align: center;
}

.intro-band {
  background: #eef5f0;
  color: #0f1011;
  padding: 88px 32px;
}

.intro-inner {
  margin: 0 auto;
  max-width: 900px;
}

.intro-inner p:last-child,
.section-heading p {
  color: #59615c;
  font-size: 18px;
  line-height: 1.65;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 104px 32px;
}

.section.dark {
  background: #0f1011;
  max-width: none;
  padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px));
  padding-right: max(32px, calc((100vw - var(--max)) / 2 + 32px));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.architecture {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
}

.lane,
.panel,
.prompt-card {
  border-radius: 8px;
}

.lane {
  background: var(--panel-2);
  border: 1px solid var(--line-light);
  color: #0f1011;
  min-height: 228px;
  padding: 24px;
}

.lane-label {
  color: var(--green-deep);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 42px;
  text-transform: uppercase;
}

.lane p,
.panel p,
.prompt-card p {
  line-height: 1.58;
  margin-bottom: 0;
}

.lane p {
  color: #59615c;
}

.connector {
  align-self: center;
  background: linear-gradient(90deg, var(--green), rgba(16, 185, 129, 0));
  height: 2px;
}

.split {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.panel {
  background: rgba(17, 17, 21, 0.88);
  border: 1px solid var(--line);
  padding: 26px;
}

.panel-number {
  color: var(--green);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 42px;
}

.panel p,
.prompt-card p {
  color: var(--ink-muted);
}

.use-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
}

.prompt-card {
  background: #17181c;
  border: 1px solid var(--line);
  min-height: 320px;
  padding: 24px;
}

.prompt-card span {
  color: var(--green);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.prompt-card code {
  color: var(--ink);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.56;
  margin-bottom: 22px;
  white-space: normal;
}

.permission-table {
  background: #f7f9f7;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  color: #0f1011;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1fr;
}

.table-row > div {
  border-bottom: 1px solid var(--line-light);
  color: #59615c;
  line-height: 1.55;
  padding: 18px;
}

.table-row > div:first-child {
  color: #0f1011;
  font-weight: 750;
}

.table-head {
  background: #e7f3ec;
}

.table-head > div {
  color: #0f1011;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-row:last-child > div {
  border-bottom: 0;
}

.setup {
  background: #ecfdf5;
  color: #0f1011;
  justify-content: space-between;
  margin: 0 auto 88px;
  max-width: var(--max);
  padding: 44px 32px;
}

.setup div {
  max-width: 760px;
}

.setup p:last-child {
  color: #59615c;
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 32px;
}

.site-footer img {
  height: 26px;
  width: auto;
}

.site-footer p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--ink-muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 72px 20px 56px;
  }

  h1 {
    font-size: 46px;
    line-height: 1.06;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .thread-stage {
    width: 100%;
  }

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

  .connector {
    height: 24px;
    justify-self: center;
    width: 2px;
    background: linear-gradient(180deg, var(--green), rgba(16, 185, 129, 0));
  }

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

  .runtime-strip,
  .table-row {
    grid-template-columns: 1fr;
  }

  .section,
  .intro-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section.dark {
    padding-left: 20px;
    padding-right: 20px;
  }

  .setup {
    margin-left: 20px;
    margin-right: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 28px 20px;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    width: 100%;
  }

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

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