:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --paper-deep: #e8e3da;
  --ink: #161616;
  --muted: #68645e;
  --line: rgba(22, 22, 22, 0.16);
  --accent: #e52e70;
  --panel: #1a1a1c;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(22, 22, 22, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
footer > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img,
footer img { border-radius: 8px; }

nav { display: flex; gap: 30px; }
nav a,
.language-toggle,
.source-link,
footer a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 550;
  transition: color 180ms ease;
}

.language-toggle {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

nav a:hover,
.language-toggle:hover,
.source-link:hover,
footer a:hover { color: var(--ink); }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(52px, 7vw, 112px);
  padding: 86px 0 112px;
}

.hero > * { min-width: 0; }

.kicker,
.section-label {
  margin: 0;
  color: var(--accent);
  font: 650 0.72rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  margin: 23px 0 28px;
  font-size: clamp(4.3rem, 7.4vw, 7.5rem);
  font-weight: 650;
  line-height: 0.88;
  letter-spacing: -0.072em;
  text-wrap: balance;
}

html[lang="zh-Hant"] h1 {
  font-size: clamp(4.2rem, 5.6vw, 5.5rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.download {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px 0 22px;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 650;
  box-shadow: 0 14px 34px rgba(22, 22, 22, 0.16);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.download svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download:hover {
  background: #303030;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.2);
}

.download:active { transform: translateY(0) scale(0.985); }
.download[aria-disabled="true"] { opacity: 0.52; pointer-events: none; box-shadow: none; }

.download:focus-visible,
nav a:focus-visible,
.language-toggle:focus-visible,
.source-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.release-meta {
  margin: 17px 0 0;
  color: #7c7770;
  font: 500 0.72rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.product-shot { margin: 0; min-width: 0; }

.product-scene {
  position: relative;
  min-height: 590px;
}

.terminal-window {
  position: absolute;
  inset: 0 42px 78px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #060606;
  box-shadow: 0 28px 70px rgba(32, 26, 22, 0.18);
  color: #c4c0b8;
  transition: filter 180ms ease-out, transform 240ms cubic-bezier(.22, .8, .24, 1);
}

.mac-titlebar {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b8986;
  font: 500 0.64rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.traffic-lights { display: flex; align-items: center; gap: 7px; }
.traffic-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }

.terminal-content {
  position: relative;
  min-height: calc(100% - 46px);
  padding: 24px 26px 22px;
  font: 500 0.67rem/1.45 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.claude-header {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  color: #aaa6a1;
}

.claude-mark {
  margin: -2px 0 0;
  color: #df7958;
  font: 700 .92rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: -.05em;
  transform: scaleX(.79);
  transform-origin: left top;
  white-space: pre;
}

.claude-brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.claude-brand-copy > div { display: flex; align-items: baseline; gap: 7px; }
.claude-brand-copy strong { color: #d7d3cc; font-weight: 650; }
.claude-brand-copy span { color: #77746f; white-space: nowrap; }

.claude-transcript {
  display: grid;
  gap: 11px;
  margin-top: 46px;
  color: #aaa6a1;
}

.conversation-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  background: #353535;
  color: #efebe5;
}

.conversation-user b { color: #85817b; }
.conversation-response,
.conversation-thinking { display: flex; align-items: center; gap: 8px; padding-inline: 4px; }
.conversation-response { color: #d8d4ce; }
.conversation-response b { color: #f0ede8; font-size: .63rem; }
.conversation-thinking { color: #7d7973; }
.conversation-thinking b { color: #df7958; font-size: .83rem; }

.claude-composer {
  position: absolute;
  right: 26px;
  bottom: 22px;
  left: 26px;
}

.claude-input {
  min-height: 76px;
  padding: 5px 0;
  border-top: 1px solid #69655f;
  border-bottom: 1px solid #69655f;
}

.prompt-line {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dedad4;
}

.prompt-line b { color: #f2eee7; font-size: 1rem; }
.prompt-line i {
  width: 2px;
  height: 15px;
  background: #ece8e2;
  opacity: 0.85;
  animation: caret-blink 700ms steps(1) infinite;
}

.claude-status { display: flex; gap: 13px; padding-top: 7px; color: #65615c; }
.claude-status span:first-child { color: #b66dd3; }

.paste-event {
  position: absolute;
  right: 28px;
  bottom: 108px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a7a39d;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease-out, transform 180ms ease-out;
}

.paste-event kbd {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: #292a2d;
  color: #f1eee9;
  font: inherit;
}

.terminal-attachment {
  width: fit-content;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #e3dfd8;
  font-size: .8rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease-out, transform 220ms cubic-bezier(.22, .8, .24, 1);
}

.terminal-attachment b { color: #f2eee7; font-size: 1rem; }

.product-scene[data-phase="paste"] .paste-event {
  opacity: 1;
  transform: translateY(0);
}

.product-scene[data-phase="attached"] .terminal-attachment {
  opacity: 1;
  transform: translateY(0);
}

.editor-window {
  container-type: inline-size;
  position: absolute;
  z-index: 1;
  top: 92px;
  right: 0;
  left: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--panel);
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.08) inset,
    0 38px 90px rgba(32, 26, 22, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.978);
  transform-origin: 58% 38%;
  transition:
    opacity 160ms ease-out,
    transform 260ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 180ms ease-out;
}

.product-scene:is(
  [data-phase="opening"],
  [data-phase="focused"],
  [data-phase="drawing"],
  [data-phase="reviewing"],
  [data-phase="enter-hint"],
  [data-phase="enter-press"]
) .terminal-window {
  filter: brightness(.54);
  transform: scale(.995);
}

.product-scene:is(
  [data-phase="opening"],
  [data-phase="focused"],
  [data-phase="drawing"],
  [data-phase="reviewing"],
  [data-phase="enter-hint"],
  [data-phase="enter-press"]
) .editor-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-scene[data-phase="returning"] .editor-window {
  opacity: 0;
  transform: translateY(-8px) scale(.99);
  transition-timing-function: ease-in;
  transition-duration: 140ms;
}

.product-scene:is(
  [data-phase="focused"],
  [data-phase="drawing"],
  [data-phase="reviewing"],
  [data-phase="enter-hint"],
  [data-phase="enter-press"]
) .editor-window {
  box-shadow:
    0 0 0 1px rgba(10, 132, 255, .45),
    0 38px 90px rgba(32, 26, 22, .28);
}

.editor-titlebar {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-titlebar .traffic-lights i {
  width: 9px;
  height: 9px;
}

.editor-actionbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #f0eeea;
  font-size: 0.64rem;
}

.editor-actionbar strong {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.editor-cancel {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: #2a292c;
  color: #e6e3de;
}

.editor-send {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 6px;
  background: #087cf0;
  color: white;
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset;
  transform: scale(1);
  transition: transform 90ms ease-out, background 90ms ease-out;
}

.editor-send b {
  display: inline-block;
  font-size: 0.62rem;
  transform: rotate(-22deg);
}

.enter-key {
  position: absolute;
  z-index: 3;
  top: 92px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #2c2b2e;
  color: #f1efeb;
  font: 650 .67rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  opacity: 0;
  transform: translateY(-5px) scale(.96);
  transition:
    opacity 130ms ease-out,
    transform 180ms cubic-bezier(.16, 1, .3, 1),
    border-bottom-width 80ms ease-out,
    background 80ms ease-out;
}

.enter-key span { color: #61a9ff; font-size: .9rem; }

.product-scene:is([data-phase="enter-hint"], [data-phase="enter-press"]) .enter-key {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-scene[data-phase="enter-press"] .enter-key {
  border-bottom-width: 1px;
  background: #202023;
  transform: translateY(2px) scale(.97);
}

.editor-stage {
  position: relative;
  min-height: 322px;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 54px);
  background: #111113;
}

.sample-image {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1.6;
  overflow: hidden;
  padding: clamp(26px, 4vw, 43px);
  background: #f8f6f1;
  color: #1d1d1f;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.sample-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sample-heading strong { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -0.04em; }
.sample-heading span,
.sample-row b { color: #99958e; font: 500 0.68rem/1 ui-monospace, Menlo, monospace; }
.sample-rule { height: 1px; margin: 20px 0 28px; background: #d8d3ca; }

.sample-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}

.sample-row span {
  width: 62%;
  height: 13px;
  border-radius: 2px;
  background: #c5c0b8;
}

.sample-row.short span { width: 39%; }

.annotation {
  position: absolute;
  inset: 7% 2%;
  width: 96%;
  height: 86%;
  overflow: visible;
}

.annotation path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  transition: none;
}

.demo-pointer {
  position: absolute;
  z-index: 2;
  left: 31%;
  top: 44%;
  width: 20px;
  height: 25px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 120ms ease-out,
    transform 260ms cubic-bezier(.55, 0, .24, 1);
}

.demo-pointer path {
  fill: #f5f3ef;
  stroke: #171719;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.product-scene:is([data-phase="drawing"], [data-phase="reviewing"]) .demo-pointer {
  opacity: 1;
}

.product-scene:is([data-phase="drawing"], [data-phase="reviewing"], [data-phase="enter-hint"], [data-phase="enter-press"]) .annotation path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1);
}

.product-scene[data-phase="enter-press"] .editor-send {
  background: #0068d2;
  transform: scale(.96);
}

.editor-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  color: #9a9895;
}

.tool {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 1.15rem;
}

.tool.pen { border: 1px solid rgba(255, 255, 255, 0.12); background: #2a292c; color: #0a84ff; }
.toolbar-divider { width: 1px; height: 27px; margin-inline: 4px; background: rgba(255, 255, 255, 0.12); }
.swatch { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }
.swatch.selected { outline: 2px solid white; outline-offset: 2px; margin-left: 3px; }
.swatch.red { background: #ff453a; }
.swatch.orange { background: #ff9f0a; }
.swatch.yellow { background: #ffd60a; }
.swatch.green { background: #30d158; }
.swatch.blue { background: #0a84ff; }

.size-dot { display: block; border-radius: 50%; background: #d5d2cd; }
.size-dot.small { width: 5px; height: 5px; }
.size-dot.large { width: 13px; height: 13px; }

.width-control {
  width: 62px;
  height: 6px;
  margin-inline: 5px;
  border-radius: 5px;
  background: #403e41;
}

.width-control i { display: block; width: 31px; height: 6px; border-radius: inherit; background: #aaa6a1; }

.product-shot figcaption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font: 600 0.7rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-step { display: inline-flex; align-items: center; gap: 9px; min-width: 210px; justify-content: flex-end; }
.demo-step b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-progress {
  width: 92px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
  transform: translateZ(0);
}
.demo-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.setup {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(48px, 9vw, 140px);
  padding: 110px 0 128px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 15px 0 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
  font-weight: 580;
  text-wrap: balance;
}

.setup ol { margin: 0; padding: 0; list-style: none; }

.setup li {
  min-height: 96px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.setup li:last-child { border-bottom: 1px solid var(--line); }
.setup li > span { color: var(--accent); font: 600 0.72rem/1 ui-monospace, Menlo, monospace; }
.setup li p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.45; }
.setup li strong { color: var(--ink); font-weight: 650; }

.facts {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1px;
  margin-bottom: 112px;
  background: var(--ink);
}

.facts article {
  min-height: 340px;
  padding: clamp(38px, 6vw, 76px);
  background: var(--paper-deep);
}

.facts article:last-child { background: var(--ink); color: #f5f2ec; }
.facts article:last-child .section-label { color: #a7a19a; }
.facts h2 { max-width: 12ch; font-size: clamp(2rem, 3.5vw, 3.7rem); }

footer {
  min-height: 108px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}

footer p { margin: 0; color: var(--muted); font-size: 0.78rem; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

@keyframes caret-blink {
  0%, 48% { opacity: .85; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 74px; }
  .hero-copy { max-width: 760px; }
  h1 { font-size: clamp(4.4rem, 12vw, 7rem); }
  .product-shot { width: min(100%, 760px); margin-left: auto; }
  .setup { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 32px), 540px); }
  .site-header { min-height: 72px; }
  nav { gap: 18px; }
  .hero { min-height: auto; gap: 52px; padding: 62px 0 80px; }
  h1 { font-size: clamp(3.1rem, 12.6vw, 4.1rem); }
  html[lang="zh-Hant"] h1 { font-size: clamp(3.55rem, 16.5vw, 4.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .download { width: 100%; justify-content: space-between; }
  .product-scene { min-height: 540px; }
  .terminal-window { inset: 0 16px 100px 0; }
  .editor-window { top: 92px; left: 16px; }
  .editor-stage { min-height: 300px; }
  .sample-row b, .editor-actionbar strong { display: none; }
  .editor-actionbar { grid-template-columns: 1fr 1fr; }
  .editor-toolbar { gap: 9px; }
  .editor-toolbar .swatch.orange,
  .editor-toolbar .swatch.yellow,
  .editor-toolbar .swatch.green,
  .editor-toolbar .size-dot,
  .editor-toolbar .width-control,
  .editor-toolbar .toolbar-divider:last-of-type { display: none; }
  .width-control { width: 42px; }
  .demo-step { min-width: 0; }
  .demo-progress { width: 64px; }
  .setup { padding: 82px 0 92px; }
  .facts { grid-template-columns: 1fr; margin-bottom: 72px; }
  .facts article { min-height: 280px; }
  footer { min-height: 126px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .editor-window { opacity: 1; transform: none; animation: none !important; }
  .annotation path { stroke-dashoffset: 0; animation: none !important; }
  .paste-event { opacity: 0; animation: none !important; }
  .terminal-attachment { opacity: 1; transform: none; animation: none !important; }
  .demo-pointer { display: none; }
  .editor-send,
  .product-shot figcaption span { animation: none !important; }
}
