/* ============ tokens ============ */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --ink-4: #a1a1a6;
  --paper: #ffffff;
  --paper-2: #fbfbfd;
  --paper-3: #f5f5f7;
  --black: #000000;
  --line: rgba(0, 0, 0, .12);
  --line-2: rgba(0, 0, 0, .07);
  --receipt: #30d158;
  --undo: #0a84ff;
  --accent: #0071e3;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 28px;
  --pill: 980px;
}

/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(0, 113, 227, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============ type ============ */
.h1 {
  font-size: clamp(38px, 6.6vw, 82px);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 600;
  text-wrap: balance;
}
.h1--sm { font-size: clamp(34px, 5vw, 64px); }
.h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -.022em;
  font-weight: 600;
}
.h3 {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 600;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--ink-3);
  font-weight: 400;
}
.lede {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.55;
  letter-spacing: -.006em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.tiny { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-ligatures: none; }

/* ============ nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 48px;
  background: rgba(18, 18, 19, .74);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: .5px solid rgba(255, 255, 255, .14);
}
.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5f5f7;
}
.brand-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: #f5f5f7;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 1px;
  border: 1.5px solid #000;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 12.5px;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
  transition: opacity .25s;
}
.nav-links a:hover { opacity: .55; }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 500; }
.nav-btn {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  transition: background .25s;
}
.nav-btn:hover { background: #0077ed; }

/* ============ hero ============ */
.hero {
  background: var(--black);
  color: #f5f5f7;
  padding: 148px 24px 96px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero .h1 { max-width: 15em; margin: 0 auto; }
.hero .lede {
  color: var(--ink-4);
  max-width: 620px;
  margin: 26px auto 0;
}
.hero .eyebrow { color: #86868b; margin-bottom: 22px; }
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s;
  cursor: pointer;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #0077ed; }
.btn--ghost { border-color: rgba(255, 255, 255, .42); color: #f5f5f7; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

/* ============ terminal mock ============ */
.mocks {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  margin: 74px auto 0;
  max-width: 940px;
  position: relative;
}
.mocks::before {
  content: "";
  position: absolute;
  inset: -90px 6% 40%;
  background: radial-gradient(ellipse at 50% 40%, rgba(120, 160, 255, .16), transparent 70%);
  pointer-events: none;
}
.win {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  background: #16171a;
  border: .5px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: .5px solid rgba(255, 255, 255, .08);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3b3f; }
.win-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #7a7d85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-body {
  padding: 16px 14px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #d5d7dd;
  overflow-x: auto;
}
.win-body .ln { display: block; white-space: pre; }
.c-dim { color: #6e7178; }
.c-ok { color: #4ade80; }
.c-warn { color: #f5c451; }
.c-acc { color: #7ab8ff; }
.c-key { color: #e6e7ea; font-weight: 500; }
.c-red { color: #ff7b72; }

/* ============ section shells ============ */
.section { padding: 120px 24px; }
.section--alt { background: var(--paper-2); }
.section--gray { background: var(--paper-3); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section--tight { padding: 78px 24px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap--narrow { max-width: 760px; margin: 0 auto; }
.head { max-width: 760px; }
.head .h2 { margin-top: 10px; }
.head .sub { margin-top: 20px; }
.section--dark .head .sub, .section--dark .sub { color: var(--ink-4); }
.section--dark .eyebrow, .section--dark .tiny { color: var(--ink-3); }

/* ============ stats bar ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: .5px solid var(--line-2);
  border-bottom: .5px solid var(--line-2);
}
.stat { padding: 42px 28px; border-left: .5px solid var(--line-2); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
}
.stat .lbl { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ============ product cards ============ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.card {
  position: relative;
  background: var(--paper);
  border: .5px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .3);
  border-color: var(--line);
}
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-3);
}
.card-kicker .led { width: 7px; height: 7px; border-radius: 50%; }
.led--receipt { background: var(--receipt); }
.led--undo { background: var(--undo); }
.led--board { background: var(--ink-4); }
.card-title {
  font-family: var(--mono);
  font-size: 24px;
  letter-spacing: -.02em;
  margin-top: 18px;
  font-weight: 500;
}
.card-desc { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.card-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.card-link {
  margin-top: 22px;
  font-size: 15px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link span.arrow { transition: transform .3s var(--ease); }
.card:hover .card-link span.arrow { transform: translateX(4px); }
.card-art { margin-top: auto; padding-top: 30px; }

/* ============ quotes ============ */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.quote {
  background: var(--paper);
  border: .5px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
}
.qtext {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.005em;
  color: var(--ink);
}
.qtext::before { content: "“"; }
.qtext::after { content: "”"; }
.qzh {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.qfoot {
  margin-top: 24px;
  padding-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qsrc { font-size: 12.5px; color: var(--ink-3); }
.pill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--pill);
  border: .5px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--ok { color: #1a7f37; border-color: rgba(48, 209, 88, .45); background: rgba(48, 209, 88, .09); }
.pill--pause { color: #8a5a00; border-color: rgba(245, 196, 81, .55); background: rgba(245, 196, 81, .14); }
.pill--drop { color: var(--ink-2); }

/* ============ principles ============ */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.principle .ico { color: #f5f5f7; opacity: .92; margin-bottom: 20px; }
.principle .h3 { font-size: 21px; }
.principle p { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-4); }

/* ============ install / code ============ */
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #16171a;
  border: .5px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 15px 16px;
  margin-top: 14px;
}
.cmd code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: #e6e7ea;
  white-space: nowrap;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd .prompt { color: #6e7178; font-family: var(--mono); font-size: 13.5px; flex: none; }
.copy {
  flex: none;
  font-family: var(--font);
  font-size: 12px;
  color: #d5d7dd;
  background: rgba(255, 255, 255, .09);
  border: 0;
  border-radius: 7px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.copy:hover { background: rgba(255, 255, 255, .16); }
.copy[data-done="1"] { background: rgba(48, 209, 88, .18); color: #7ee2a0; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 52px; }
.install-item { min-width: 0; }
.install-item .label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section--dark .install-item { min-width: 0; }
.install-item .label { color: var(--ink-3); }

/* ============ timeline ============ */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 72px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 5px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.tl-item { position: relative; padding: 30px 22px 0 0; }
.tl-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink-3);
}
.tl-item:last-child::before { background: var(--ink); border-color: var(--ink); }
.tl-date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.tl-title { margin-top: 10px; font-size: 16px; font-weight: 500; }
.tl-desc { margin-top: 7px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ============ pain list ============ */
.pains { margin-top: 56px; display: grid; gap: 0; }
.pain {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-width: 0;
  gap: 28px;
  padding: 30px 0;
  border-top: .5px solid var(--line-2);
}
.pain:last-child { border-bottom: .5px solid var(--line-2); }
.pain-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 4px;
}
.pain-id .plat { display: block; margin-top: 5px; color: var(--ink-4); }
.pain-q {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.005em;
  color: var(--ink);
  max-width: 46em;
}
.pain-zh { margin-top: 9px; font-size: 14.5px; color: var(--ink-2); }
.pain-foot { margin-top: 13px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pain-src { font-size: 12.5px; color: var(--accent); }
.pain-src:hover { text-decoration: underline; }

/* ============ steps ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-top: 64px; }
.step { min-width: 0; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.step .h3 { margin-top: 18px; font-size: 20px; }
.step p { margin-top: 11px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }

/* ============ limits ============ */
.limits { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.limit {
  padding: 22px 0;
  border-top: .5px solid var(--line-2);
  display: flex;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.limit::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  margin-top: 9px;
}

/* ============ next / pairing ============ */
.pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 44px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: .5px solid var(--line-2);
  margin-top: 28px;
}
.pair .h3 { font-size: 22px; }
.pair p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* ============ footer ============ */
.footer { background: var(--paper-3); padding: 64px 24px 44px; font-size: 12.5px; color: var(--ink-2); }
.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.foot-brand { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.foot-brand p { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; font-weight: 400; max-width: 22em; }
.foot-col h4 { font-size: 12px; font-weight: 500; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: var(--ink-2); transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: .5px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-3);
}

/* ============ reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.hero-fade { animation: fadeUp 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ============ responsive ============ */
@media (max-width: 1068px) {
  .section { padding: 104px 24px; }
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .limits { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .tl-item { padding-top: 26px; border-top: .5px solid var(--line-2); }
  .tl-item::before { top: -5px; }
  .mocks { flex-direction: column; }
  .win { flex: none; width: 100%; }
  .install-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .hero { padding: 116px 20px 72px; }
  .hero .lede { font-size: 16.5px; }
  .section { padding: 84px 20px; }
  .section--tight { padding: 60px 20px; }
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: .5px solid var(--line-2); }
  .card { padding: 34px 24px 28px; }
  .quote { padding: 26px 22px; }
  .pain { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .pair { padding: 30px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .cmd code { font-size: 12px; }
  .h1 { letter-spacing: -.02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-fade { animation: none; }
  * { transition-duration: .01ms !important; }
}
