:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-deep: #e9e3d5;
  --ink: #17241f;
  --muted: #637069;
  --line: rgba(23, 36, 31, 0.14);
  --green: #15966d;
  --green-dark: #08704f;
  --green-pale: #dcefe3;
  --white: #fffef9;
  --shadow: 0 30px 80px rgba(35, 51, 43, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 36, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 36, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 720; letter-spacing: -0.02em; }
.brand img { filter: drop-shadow(0 5px 10px rgba(16, 84, 61, 0.12)); }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
nav > a:not(.nav-download) { color: var(--muted); }
nav > a:hover { color: var(--green-dark); }
.nav-download { padding: 10px 17px; color: white; background: var(--ink); border-radius: 999px; }

main { overflow: hidden; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 700px;
  margin: 0 auto;
  padding: 82px 0 90px;
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  align-items: center;
  gap: 68px;
}

.eyebrow { margin: 0 0 20px; color: var(--green-dark); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; margin: 0 10px 3px 0; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(64px, 7.5vw, 108px); font-weight: 760; line-height: 0.95; letter-spacing: -0.075em; }
h1 em { color: var(--green); font-style: normal; font-weight: 520; }
.lead { max-width: 540px; margin-bottom: 34px; color: #45524c; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: stretch; gap: 12px; }
.button { min-height: 56px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--ink); border-radius: 12px; font-size: 15px; font-weight: 700; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 36, 31, 0.14); }
.button.primary { min-width: 228px; color: white; background: var(--ink); }
.button.primary small { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.7); font-size: 11px; font-weight: 500; }
.button.secondary { background: rgba(255,255,255,.28); }
.system-note { margin: 16px 0 0; color: #7b847f; font-size: 12px; }

.product-scene {
  position: relative;
  min-height: 510px;
  padding: 50px 28px 36px;
  border: 1px solid rgba(23, 36, 31, 0.12);
  border-radius: 28px;
  background: #26312d;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.desktop-copy { color: rgba(255,255,255,.72); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; line-height: 1.65; }
.desktop-copy p { margin: 22px 0; }
.desktop-copy .selected { width: 78%; padding: 2px 4px; color: white; background: rgba(114, 183, 255, 0.4); }
.line { display: block; width: 88%; height: 10px; margin: 14px 0; border-radius: 4px; background: rgba(255,255,255,.12); }
.line.short { width: 42%; }
.line.medium { width: 66%; }
.quick-pill { position: absolute; top: 204px; left: 10px; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: white; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.quick-pill span, .quick-pill b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 750; }
.quick-pill b { color: white; background: var(--green); }
.quick-pill span { color: #6d746f; background: #edf0ed; }

.translation-card { position: absolute; right: -22px; bottom: 54px; width: 92%; overflow: hidden; border: 1px solid rgba(0,0,0,.1); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 24px 60px rgba(0,0,0,.27); transform: rotate(-1.2deg); }
.card-toolbar { height: 54px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #d8ddd9; color: #57605b; font-size: 12px; font-weight: 700; }
.pin { color: var(--green); font-size: 20px; }
.copy-mark { justify-self: end; font-size: 21px; }
.translation-columns { display: grid; grid-template-columns: 1fr 1fr; }
.translation-columns > div { min-height: 184px; padding: 22px; }
.translation-columns > div + div { border-left: 1px solid #d8ddd9; }
.translation-columns small { color: #99a09c; font-size: 11px; }
.translation-columns p { margin: 10px 0 0; color: #28332e; font-size: 15px; line-height: 1.65; }
.translation-columns > div:first-child p { color: #6e7772; }
.scene-caption { position: absolute; left: 28px; bottom: 17px; color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .05em; }
.scene-caption span { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: #67cf8f; box-shadow: 0 0 0 5px rgba(103,207,143,.12); }

.promise-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.32); }
.promise-strip p { margin: 0; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-right: 1px solid var(--line); text-align: center; }
.promise-strip p:last-child { border-right: 0; }
.promise-strip strong { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; }
.promise-strip span { color: var(--muted); font-size: 12px; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1.5fr; align-items: end; margin-bottom: 50px; }
.section-heading .eyebrow { align-self: start; }
h2 { margin-bottom: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -0.055em; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.feature-card { min-height: 390px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.42); }
.feature-card.featured { color: white; background: var(--green-dark); }
.feature-card .index { margin-bottom: auto; color: var(--green); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; letter-spacing: .06em; }
.feature-card.featured .index { color: #9fe2bc; }
.feature-card h3 { margin-bottom: 14px; font-size: 28px; letter-spacing: -.035em; }
.feature-card > p:not(.index) { color: var(--muted); font-size: 14px; line-height: 1.75; }
.feature-card.featured > p:not(.index) { color: rgba(255,255,255,.72); }
.mini-selection { margin-top: 24px; padding: 16px; border-radius: 12px; color: var(--ink); background: white; font-size: 13px; }
.mini-selection span { display: block; padding: 3px 5px; background: #cfe5fa; }
.mini-selection b { display: block; margin-top: 10px; font-weight: 600; }
.keycap-row { height: 72px; margin-top: 25px; display: flex; align-items: center; gap: 12px; }
kbd { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #c7c8c2; border-bottom-width: 4px; border-radius: 12px; background: white; font-family: inherit; font-size: 20px; box-shadow: 0 5px 12px rgba(23,36,31,.08); }
.rewrite-sample { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 14px; }
.rewrite-sample del { color: #8e9692; }
.rewrite-sample ins { color: var(--green-dark); font-weight: 700; text-decoration: none; }

.install { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; border-top: 1px solid var(--line); }
.install-copy > p:not(.eyebrow) { margin: 26px 0; color: var(--muted); line-height: 1.8; }
.notice { padding: 18px 20px; display: grid; gap: 6px; border-left: 3px solid #c58a2d; background: rgba(255, 228, 169, .32); }
.notice strong { font-size: 13px; }
.notice span { color: #77664d; font-size: 12px; line-height: 1.6; }
.install-steps { margin: 0; padding: 0; list-style: none; }
.install-steps li { padding: 28px 0; display: grid; grid-template-columns: 52px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.install-steps li:first-child { border-top: 1px solid var(--line); }
.install-steps li > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-family: ui-monospace, monospace; font-size: 12px; }
.install-steps strong { font-size: 17px; }
.install-steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.download-panel { margin-bottom: 80px; padding: 46px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; color: white; border-radius: 26px; background: var(--ink); box-shadow: var(--shadow); }
.download-panel h2 { margin-bottom: 8px; font-size: clamp(30px, 3.8vw, 52px); }
.download-panel p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.download-panel .eyebrow { color: #86d9a8; }
.button.primary.light { color: var(--ink); background: white; border-color: white; }
.button.primary.light small { color: #77817c; border-left-color: #d7ddd9; }
.download-panel details { grid-column: 2 / -1; color: rgba(255,255,255,.56); font-size: 11px; }
.download-panel summary { width: fit-content; cursor: pointer; }
.download-panel code { display: block; margin-top: 10px; overflow-wrap: anywhere; color: rgba(255,255,255,.75); }

footer { min-height: 120px; padding: 30px max(20px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
footer p:last-child { justify-self: end; }

@media (max-width: 900px) {
  .hero { padding-top: 58px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .product-scene { width: min(680px, 100%); justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 320px; }
  .install { grid-template-columns: 1fr; gap: 60px; }
  .download-panel { grid-template-columns: auto 1fr; }
  .download-panel .button { grid-column: 1 / -1; }
  .download-panel details { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 28px, 1180px); }
  nav > a:not(.nav-download) { display: none; }
  .hero, .section { width: min(100% - 28px, 1180px); }
  .hero { padding: 54px 0 72px; gap: 48px; }
  h1 { font-size: 62px; }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .product-scene { min-height: 430px; padding: 34px 18px; border-radius: 22px; }
  .translation-card { right: -8px; width: 96%; bottom: 45px; }
  .translation-columns { grid-template-columns: 1fr; }
  .translation-columns > div { min-height: auto; padding: 15px 18px; }
  .translation-columns > div + div { border-left: 0; border-top: 1px solid #d8ddd9; }
  .quick-pill { top: 166px; }
  .promise-strip { grid-template-columns: 1fr 1fr; }
  .promise-strip p:nth-child(2) { border-right: 0; }
  .promise-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 88px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  h2 { font-size: 42px; }
  .download-panel { padding: 28px; grid-template-columns: 1fr; text-align: center; }
  .download-panel > img { justify-self: center; }
  .download-panel details { grid-column: auto; text-align: left; }
  footer { padding: 30px 20px; grid-template-columns: 1fr; gap: 16px; text-align: center; }
  footer .brand, footer p:last-child { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
