@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #101712;
  --muted: #5f6d63;
  --paper: #f3efe2;
  --paper-strong: #fff9e8;
  --line: rgba(16, 23, 18, 0.16);
  --steel: #1b332b;
  --green: #58d68d;
  --amber: #ffb84d;
  --orange: #e8692f;
  --blueprint: #133e38;
  --shadow: 0 24px 70px rgba(12, 24, 18, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 184, 77, 0.28), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(88, 214, 141, 0.28), transparent 28rem),
    linear-gradient(135deg, #f8f0d8 0%, #ecf2df 46%, #dae7d8 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(19, 62, 56, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 62, 56, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

body::after {
  position: fixed;
  inset: auto -10vw -32vh auto;
  z-index: -1;
  width: 64vw;
  height: 64vw;
  min-width: 560px;
  min-height: 560px;
  content: "";
  background: conic-gradient(from 180deg, rgba(232, 105, 47, 0.24), rgba(19, 62, 56, 0.1), rgba(88, 214, 141, 0.2), rgba(232, 105, 47, 0.24));
  border-radius: 50%;
  filter: blur(8px);
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 40px;
  padding: 12px 14px;
  background: rgba(255, 249, 232, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 249, 232, 0.92);
  box-shadow: 0 14px 40px rgba(16, 23, 18, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--ink);
  background: rgba(16, 23, 18, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: 680px;
  padding: 36px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 8.4vw, 7.9rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: 1.38rem;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: #344239;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero__actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  color: #f8f0d8;
  background: var(--steel);
  box-shadow: 0 12px 26px rgba(27, 51, 43, 0.24);
}

.button--ghost {
  background: rgba(255, 249, 232, 0.62);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 38px 0 0;
}

.hero__stats div {
  padding: 16px;
  background: rgba(255, 249, 232, 0.58);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.hero__stats dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 7px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero__panel {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(27, 51, 43, 0.96), rgba(19, 62, 56, 0.88)),
    radial-gradient(circle at top right, rgba(88, 214, 141, 0.32), transparent 20rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__panel--screenshot {
  padding: 12px;
  background: #12221d;
}

.hero__panel--screenshot > img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: left top;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
}

.hero__panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.window,
.diagnostic-card {
  position: relative;
  z-index: 1;
}

.window {
  overflow: hidden;
  background: #101712;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.window__bar span:nth-child(2) {
  background: var(--amber);
}

.window__bar span:nth-child(3) {
  background: var(--green);
}

pre {
  position: relative;
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #def7df;
  background: #101712;
  border-radius: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

code {
  font-family: "IBM Plex Mono", monospace;
}

:not(pre) > code {
  padding: 0.12em 0.35em;
  color: #0d372d;
  background: rgba(88, 214, 141, 0.2);
  border-radius: 0.35em;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  color: #def7df;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.diagnostic-card {
  width: min(360px, calc(100% - 28px));
  margin: -20px 0 0 auto;
  padding: 18px;
  color: #eef7e9;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.diagnostic-card p {
  margin: 8px 0 0;
  color: rgba(238, 247, 233, 0.76);
  line-height: 1.5;
}

.pulse {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(88, 214, 141, 0.8);
  animation: pulse 1.8s infinite;
}

.section {
  padding: 104px 0;
}

.section__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section__heading h2 {
  max-width: 760px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.reason-list article,
.workflow-step,
.proof-card,
.cta,
.docs-content {
  background: rgba(255, 249, 232, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(16, 23, 18, 0.08);
  backdrop-filter: blur(12px);
}

.feature-card {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius);
}

.feature-card p,
.reason-list p,
.workflow-step p,
.proof-card p,
.cta p,
.docs-description {
  color: var(--muted);
  line-height: 1.65;
}

.section--split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.reason-list {
  display: grid;
  gap: 14px;
}

.reason-list article {
  padding: 24px;
  border-radius: 24px;
}

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

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
}

.workflow-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f8f0d8;
  background: var(--steel);
  border-radius: 50%;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.workflow-step h3,
.workflow-step p {
  margin: 0;
}

.workflow-step p {
  margin-top: 8px;
}

.feature-showcase {
  display: grid;
  gap: 72px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.65fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  overflow: visible;
}

.showcase-card--flip {
  grid-template-columns: minmax(360px, 0.65fr) minmax(0, 1.55fr);
}

.showcase-card--flip .showcase-card__media {
  order: 2;
}

.showcase-card__media {
  display: grid;
  min-height: 560px;
  overflow: hidden;
  background: #111816;
  border: 1px solid rgba(16, 23, 18, 0.22);
  border-radius: 36px;
  box-shadow: 0 34px 90px rgba(16, 23, 18, 0.18);
}

.showcase-card__media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.showcase-card__media img[src*="breakpoint-step"] {
  object-fit: contain;
  padding: 34px;
}

.showcase-card__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  margin-left: -86px;
  padding: clamp(28px, 3vw, 46px);
  background: rgba(255, 249, 232, 0.84);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(16, 23, 18, 0.12);
  backdrop-filter: blur(16px);
}

.showcase-card--flip .showcase-card__copy {
  margin-right: -86px;
  margin-left: 0;
}

.showcase-card__copy h3 {
  font-size: clamp(1.9rem, 3vw, 3.3rem);
}

.showcase-card__copy p,
.showcase-card__copy li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.showcase-card__copy p,
.showcase-card__copy ul {
  margin: 0;
}

.showcase-card__copy ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.proof-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.proof-card {
  min-height: 300px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
}

.proof-card--dark {
  color: #eff7e9;
  background:
    linear-gradient(135deg, rgba(16, 23, 18, 0.98), rgba(19, 62, 56, 0.9)),
    linear-gradient(rgba(88, 214, 141, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 214, 141, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  border-color: rgba(255, 255, 255, 0.14);
}

.proof-card--dark p {
  max-width: 720px;
  color: rgba(239, 247, 233, 0.74);
}

.cta {
  justify-content: space-between;
  gap: 28px;
  margin: 70px 0 110px;
  padding: 34px;
  border-radius: 34px;
}

.cta h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 96px;
}

.docs-rail {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 249, 232, 0.66);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.docs-rail a {
  padding: 11px 12px;
  color: var(--muted);
  border-radius: 14px;
  text-decoration: none;
}

.docs-rail a:hover,
.docs-rail a.is-active,
.docs-rail__home {
  color: var(--ink);
  background: rgba(16, 23, 18, 0.08);
}

.docs-content {
  padding: clamp(24px, 5vw, 58px);
  border-radius: 34px;
}

.docs-content h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.markdown-body {
  margin-top: 40px;
}

.markdown-body h1 {
  display: none;
}

.markdown-body h2 {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.markdown-body h3 {
  margin-top: 34px;
}

.markdown-body p,
.markdown-body li {
  color: #35433b;
  font-size: 1.02rem;
  line-height: 1.75;
}

.markdown-body a {
  color: #0b5c49;
  font-weight: 700;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.3rem;
}

.markdown-body img {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.42);
}

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

th {
  background: rgba(27, 51, 43, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(88, 214, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 214, 141, 0);
  }
}

@media (max-width: 920px) {
  .site-header,
  .top-nav {
    align-items: stretch;
  }

  .site-header {
    position: static;
    flex-direction: column;
    border-radius: 28px;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero,
  .section--split,
  .proof-section,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .showcase-card,
  .showcase-card--flip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .showcase-card--flip .showcase-card__media {
    order: 0;
  }

  .showcase-card__copy,
  .showcase-card--flip .showcase-card__copy {
    margin: 0;
  }

  .docs-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1480px);
  }

  .hero__stats,
  .feature-grid,
  .docs-rail {
    grid-template-columns: 1fr;
  }

  .showcase-card__media,
  .showcase-card__media img {
    min-height: 280px;
  }

  .hero__panel,
  .docs-content,
  .cta {
    border-radius: 24px;
  }

  pre {
    font-size: 0.78rem;
  }
}
