:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66716d;
  --paper: #f6f2e8;
  --paper-2: #e7eddf;
  --line: #c8d2c4;
  --panel: #101816;
  --panel-2: #1c2a26;
  --accent: #d84727;
  --accent-2: #0d7d75;
  --gold: #d8a128;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 33, 31, 0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(23, 33, 31, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 18% 12%, rgba(216, 161, 40, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 4%, rgba(13, 125, 117, 0.16), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

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

code,
pre,
.brand,
.nav-links,
.eyebrow,
.button,
.panel-title,
.trace-row,
.proof-strip,
.number,
.tab-list,
.footer {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(23, 33, 31, 0.13);
  background: rgba(246, 242, 232, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
}

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

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(2.8rem, auto));
  padding: 0.2rem;
  border: 1px solid rgba(23, 33, 31, 0.16);
  background: rgba(255, 253, 247, 0.48);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.language-switch button {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.language-switch button.active {
  background: var(--ink);
  color: var(--white);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.82fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 4.4rem);
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem) 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

html[lang="en"] h1 {
  max-width: 15ch;
  font-size: clamp(2.85rem, 6.2vw, 5.65rem);
}

html[lang="en"] .hero-lede {
  max-width: 35rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.1;
}

.hero-lede,
.section-lede,
.command-copy p,
.pain-lead p,
.pain-grid p,
.flows p,
.feature-grid p,
.case-list p,
.guide-heading p:last-child,
.guide-steps p,
.guide-notes dd {
  color: var(--muted);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.7;
}

.hero-lede {
  max-width: 43rem;
  margin: 1.8rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.ghost {
  background: rgba(255, 253, 247, 0.45);
}

.session-panel {
  position: relative;
  border: 1px solid rgba(255, 253, 247, 0.16);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  color: var(--white);
  box-shadow: var(--shadow);
}

.session-panel::after {
  position: absolute;
  right: -1.4rem;
  bottom: -1.4rem;
  z-index: -1;
  width: 62%;
  height: 62%;
  border: 1px solid var(--accent-2);
  content: "";
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 253, 247, 0.12);
}

.dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
}

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

.amber {
  background: var(--gold);
}

.green {
  background: #45b17e;
}

.panel-title {
  margin-left: 0.5rem;
  color: #b8c7c2;
  font-size: 0.72rem;
}

.trace {
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.trace-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 253, 247, 0.16);
  background: rgba(255, 253, 247, 0.055);
  font-size: 0.83rem;
}

.trace-row strong {
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.trace-row.core {
  border-color: rgba(216, 161, 40, 0.58);
}

.trace-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
}

.trace-rail span {
  height: 1.5rem;
  border-left: 1px solid rgba(255, 253, 247, 0.24);
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}

.session-panel pre {
  padding: 1.1rem;
  border-top: 1px solid rgba(255, 253, 247, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: #d9eee8;
  font-size: 0.85rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid rgba(23, 33, 31, 0.15);
  background: rgba(255, 253, 247, 0.42);
}

.proof-strip div {
  min-height: 7rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  border-right: 1px solid rgba(23, 33, 31, 0.13);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.proof-strip span {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.section,
.pain-section,
.case-section,
.guide-section,
.command-section,
.install {
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.section-lede {
  margin: 0;
}

.pain-section {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-block: 1px solid rgba(23, 33, 31, 0.15);
  background:
    linear-gradient(135deg, rgba(216, 71, 39, 0.08), transparent 34rem),
    rgba(255, 253, 247, 0.36);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 33, 31, 0.16);
  border: 1px solid rgba(23, 33, 31, 0.16);
}

.pain-grid article {
  min-height: 16rem;
  padding: 1.35rem;
  background: rgba(246, 242, 232, 0.9);
}

.pain-grid span,
.case-tag {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pain-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.flows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid rgba(23, 33, 31, 0.15);
}

.flows article {
  min-height: 22rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  border-right: 1px solid rgba(23, 33, 31, 0.13);
  background: rgba(231, 237, 223, 0.42);
}

.flows article:nth-child(even) {
  background: rgba(255, 253, 247, 0.52);
}

.number {
  display: inline-block;
  margin-bottom: 5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.flows p,
.feature-grid p {
  line-height: 1.62;
}

.section-heading {
  max-width: 62rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: rgba(23, 33, 31, 0.16);
  border: 1px solid rgba(23, 33, 31, 0.16);
}

.feature-grid article {
  min-height: 15rem;
  padding: 1.5rem;
  background: rgba(246, 242, 232, 0.88);
}

.case-section {
  border-top: 1px solid rgba(23, 33, 31, 0.15);
  background: rgba(231, 237, 223, 0.34);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid rgba(23, 33, 31, 0.15);
  background: rgba(23, 33, 31, 0.15);
}

.case-list article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 30rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 253, 247, 0.72);
}

.case-list article:nth-child(4n + 2),
.case-list article:nth-child(4n + 3) {
  background: rgba(246, 242, 232, 0.92);
}

.case-list pre {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 0.45rem solid var(--accent-2);
  background: var(--ink);
  color: #d9eee8;
  font-size: 0.78rem;
}

.guide-section {
  border-top: 1px solid rgba(23, 33, 31, 0.15);
  background:
    linear-gradient(90deg, rgba(13, 125, 117, 0.08), transparent 42rem),
    rgba(255, 253, 247, 0.46);
}

.guide-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(18rem, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.guide-heading p:last-child {
  margin: 0;
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.68;
}

.guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.44fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 3.5rem;
}

.guide-steps {
  position: relative;
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(23, 33, 31, 0.15);
  background: rgba(23, 33, 31, 0.15);
}

.guide-steps li {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(246, 242, 232, 0.88);
}

.guide-steps li:nth-child(even) {
  background: rgba(255, 253, 247, 0.72);
}

.guide-steps > li > span {
  color: var(--accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.guide-steps h3 {
  margin-bottom: 0.7rem;
}

.guide-steps p {
  margin: 0;
  line-height: 1.62;
}

.guide-steps code,
.guide-notes code {
  color: var(--accent-2);
}

.guide-steps pre {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(23, 33, 31, 0.14);
  background: rgba(255, 253, 247, 0.68);
  color: var(--ink);
  font-size: 0.78rem;
}

.guide-notes {
  position: sticky;
  top: 5.6rem;
  border: 1px solid rgba(23, 33, 31, 0.16);
  background: var(--ink);
  color: var(--white);
  box-shadow: 10px 10px 0 rgba(216, 161, 40, 0.24);
}

.guide-notes h3 {
  padding: 1.3rem 1.3rem 0;
}

.guide-notes dl {
  margin: 1.2rem 0 0;
}

.guide-notes div {
  padding: 1.2rem 1.3rem;
  border-top: 1px solid rgba(255, 253, 247, 0.13);
}

.guide-notes dt {
  font-weight: 800;
}

.guide-notes dd {
  margin: 0.45rem 0 0;
  color: #bdc9c5;
  line-height: 1.58;
}

.command-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.command-copy p {
  color: #bdc9c5;
}

.command-copy code {
  color: var(--gold);
}

.command-tabs {
  border: 1px solid rgba(255, 253, 247, 0.18);
  background: #0d1312;
  box-shadow: 12px 12px 0 rgba(216, 161, 40, 0.2);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 253, 247, 0.14);
}

.tab-list button {
  min-height: 3rem;
  border: 0;
  border-right: 1px solid rgba(255, 253, 247, 0.14);
  background: transparent;
  color: #91a29c;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.tab-list button.active {
  background: var(--gold);
  color: var(--ink);
}

.command-tabs pre,
.install pre {
  padding: clamp(1.1rem, 3vw, 2rem);
  color: #d9eee8;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.install pre {
  border: 1px solid rgba(23, 33, 31, 0.16);
  background: var(--white);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--accent-2);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(23, 33, 31, 0.15);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .pain-section,
  .guide-heading,
  .guide-body,
  .command-section,
  .install {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .proof-strip,
  .flows,
  .feature-grid,
  .case-list {
    grid-template-columns: 1fr;
  }

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

  .proof-strip div,
  .flows article {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 33, 31, 0.13);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .language-switch {
    width: 100%;
    max-width: 13rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  html[lang="en"] h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 12vw, 3.75rem);
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .session-panel::after {
    display: none;
  }

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

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

  .case-list article {
    min-height: auto;
  }

  .guide-steps li {
    grid-template-columns: 1fr;
  }

  .guide-notes {
    position: static;
  }

  .number {
    margin-bottom: 2.4rem;
  }

  .footer {
    flex-direction: column;
  }
}
