/* Camofy — quiet, warm neutrals with the magnolia's blush and leaf as accents. */
:root {
  --ink: #1d1d1b;
  --text: #3a3936;
  --muted: #76746f;
  --faint: #a3a19b;
  --line: #ebe9e4;
  --soft: #f7f6f3;
  --paper: #fff;
  --leaf: #4f6b52;
  --leaf-soft: #e8eee4;
  --blush: #f6e6df;
  --radius: 14px;
  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
}
:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.header-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.header-nav a:hover {
  color: var(--ink);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.button:hover {
  border-color: #d8d6d0;
  background: var(--soft);
}
.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.button.primary:hover {
  background: #353532;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}
.button.ghost:hover {
  background: var(--soft);
}
.button.small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.text-link {
  display: inline-flex;
  gap: 6px;
  color: var(--leaf);
  font-weight: 500;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  padding: 112px 0 72px;
  text-align: center;
}
.kicker {
  color: var(--leaf);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero h1 {
  margin: 20px auto 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.lede {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.clients {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 44px;
  color: var(--faint);
  font-size: 13px;
}
.clients span {
  color: var(--muted);
}

/* Product showcase */
.showcase {
  padding-bottom: 40px;
}
.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow:
    0 1px 2px rgb(29 29 27 / 0.04),
    0 24px 60px -24px rgb(29 29 27 / 0.16);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.dots {
  display: flex;
  gap: 7px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e0da;
}
.window-url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  transform: translateX(-30px);
}
.app {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 440px;
}
.app-side {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: #fcfbfa;
  font-size: 13px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 20px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.app-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-side li {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.app-side li b {
  color: var(--faint);
  font-weight: 400;
}
.app-side li.active {
  background: #f0eee9;
  color: var(--ink);
  font-weight: 500;
}
.app-main {
  padding: 30px 36px 36px;
  text-align: left;
}
.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.app-crumb {
  color: var(--faint);
  font-size: 13px;
}
.app-head h2 {
  margin-top: 2px;
  font-size: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 500;
}
.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.app-tabs {
  display: flex;
  gap: 24px;
  margin: 22px 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.app-tabs span {
  padding-bottom: 10px;
}
.app-tabs .on {
  box-shadow: inset 0 -1.5px var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
}
.stack {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
}
.stack li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.stack li + li {
  border-top: 1px solid var(--line);
}
.stack strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.stack small {
  color: var(--faint);
  font-size: 12px;
}
.muted-row strong {
  color: var(--faint);
}
.step {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.toggle {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #e2e0da;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}
.toggle.on {
  background: var(--leaf);
}
.toggle.on::after {
  left: 14px;
}
.deliver {
  padding: 18px;
  border-radius: 12px;
  background: var(--soft);
}
.deliver-title {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
}
.deliver-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 13px;
}
.deliver-row + .deliver-row {
  border-top: 1px solid var(--line);
}
.deliver-row span {
  color: var(--ink);
}
.deliver-row em,
.deliver-row code {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.deliver-row .ok {
  color: var(--leaf);
}
.showcase-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

/* Sections */
.how,
.open {
  padding: 120px 0 0;
}
.section-head h2,
.open h2,
.closing h2 {
  margin-top: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.step-index {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  margin: 10px 0 10px;
  font-size: 20px;
}
.steps p,
.features p {
  color: var(--muted);
  font-size: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.features article {
  padding: 28px 26px 32px;
  background: var(--paper);
}
.features h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

/* Open source */
.open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 72px;
}
.open-copy > p:not(.kicker) {
  max-width: 420px;
  margin: 20px 0 24px;
  color: var(--muted);
}
.terminal {
  padding: 22px 24px;
  border-radius: 16px;
  background: #1f1f1d;
  color: #d9d7d1;
}
.terminal-head {
  display: flex;
  justify-content: space-between;
  color: #8f8d87;
  font-size: 13px;
}
.terminal-lang {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
}
.command {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  overflow-x: auto;
  font-size: 15px;
  white-space: nowrap;
}
.prompt {
  color: #9fb596;
}
.command code {
  color: #f4f3ef;
}
.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #353531;
}
.terminal-foot p {
  color: #8f8d87;
  font-size: 13px;
}
#copy-command {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #45443f;
  border-radius: 8px;
  background: transparent;
  color: #f4f3ef;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
#copy-command:hover {
  background: #2c2c29;
}
.terminal details {
  margin-top: 16px;
  font-size: 13px;
}
.terminal summary {
  color: #bdbbb4;
  cursor: pointer;
}
.terminal details p {
  margin: 10px 0;
  color: #8f8d87;
}
.terminal .text-link {
  color: #b8cbaf;
}

/* Closing & footer */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 140px;
  padding: 88px 24px;
  border-radius: 24px;
  background: var(--soft);
  text-align: center;
}
.closing h2 {
  margin: 0;
}
.footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer nav {
  display: flex;
  gap: 24px;
}
.footer nav a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 960px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-side {
    display: none;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .open {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-nav {
    display: none;
  }
  .hero {
    padding: 72px 0 56px;
  }
  .lede {
    font-size: 16px;
  }
  .desktop-break {
    display: none;
  }
  .window-url {
    transform: none;
  }
  .app-main {
    padding: 22px 18px 24px;
  }
  .app-tabs span:nth-child(n + 3) {
    display: none;
  }
  .app-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    gap: 36px;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 64px;
  }
  .how,
  .open {
    padding-top: 88px;
  }
  .terminal-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .closing {
    margin-top: 96px;
    padding: 64px 20px;
  }
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 28px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
