:root {
  --ink: #161616;
  --muted: #6c6a64;
  --paper: #f2f0e9;
  --panel: #faf9f5;
  --line: #d8d5cc;
  --accent: #ff5c35;
  --green: #2a8a59;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.045em; }
.brand-logo { display: block; width: 36px; height: 36px; }
.brand-word { font-size: 17px; }
.brand-word span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 30px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #2a8a5918; }
.hero { padding: 94px 0 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span, .section-number { color: var(--accent); }
.hero h1 { margin: 32px 0 26px; max-width: 850px; font-size: clamp(64px, 9.3vw, 132px); line-height: .88; letter-spacing: -.075em; font-weight: 800; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.primary-button { display: inline-flex; align-items: center; gap: 38px; margin-top: 36px; padding: 16px 20px; color: white; background: var(--ink); border-radius: 4px; font-size: 14px; font-weight: 700; }
.primary-button span { color: var(--accent); font-size: 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 92px; border-top: 1px solid var(--line); }
.hero-stats div { padding: 28px 0 34px; border-right: 1px solid var(--line); }
.hero-stats div + div { padding-left: 34px; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 23px; letter-spacing: -.04em; }
.hero-stats span { margin-top: 8px; color: var(--muted); font-size: 12px; }
.scripts-section { padding: 110px 0; background: var(--ink); color: white; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; margin-bottom: 46px; }
.section-heading > div { display: flex; gap: 14px; align-items: center; }
.section-heading p { margin: 0; color: #aaa7a0; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.055em; line-height: 1; }
.script-card { padding: 34px; color: var(--ink); background: var(--panel); border-radius: 12px; }
.card-top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; }
.app-icon { display: grid; place-items: center; width: 62px; height: 62px; color: white; background: var(--accent); border-radius: 15px; font-size: 24px; font-weight: 900; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 5px 8px; color: #6c6a64; background: #e8e5dc; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tag-live { color: var(--green); background: #dcecdf; }
.card-title h3 { margin: 18px 0 8px; font-size: 30px; letter-spacing: -.045em; }
.card-title p { max-width: 690px; margin: 0; color: var(--muted); line-height: 1.7; }
.version { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.command-box { margin-top: 30px; overflow: hidden; color: #e9e7df; background: #20201f; border-radius: 8px; }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #87847c; border-bottom: 1px solid #353431; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-bar > span:first-child { display: flex; gap: 6px; }
.terminal-bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #55534f; }
.command-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 20px; }
.command-row code { min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.command-row code b { color: var(--accent); }
.command-row button { padding: 10px 14px; color: var(--ink); background: var(--panel); border: 0; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.card-footer { display: flex; gap: 26px; align-items: center; padding-top: 22px; color: var(--muted); font-size: 12px; }
.card-footer a { margin-left: auto; color: var(--ink); font-weight: 800; border-bottom: 1px solid var(--ink); }
.guide { padding: 110px 0 120px; }
.section-heading.compact p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps article { min-height: 230px; padding: 26px 30px 20px 0; border-right: 1px solid var(--line); }
.steps article + article { padding-left: 30px; }
.steps article:last-child { border-right: 0; }
.steps span { color: var(--accent); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps h3 { margin: 65px 0 12px; font-size: 21px; letter-spacing: -.025em; }
.steps p { max-width: 270px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
footer { padding: 36px 0; color: white; background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-inner .brand-word { color: white; }
.footer-inner p, .footer-inner > span { color: #8f8c85; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .nav { height: 72px; }
  .nav-links a { display: none; }
  .status { border: 0; padding-left: 0; }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: clamp(58px, 19vw, 88px); }
  .hero-copy { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 66px; }
  .hero-stats div, .hero-stats div + div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .scripts-section, .guide { padding: 76px 0; }
  .script-card { padding: 22px; }
  .card-top { grid-template-columns: auto 1fr; }
  .version { display: none; }
  .card-title h3 { font-size: 24px; }
  .command-row { grid-template-columns: 1fr; }
  .command-row button { width: 100%; padding: 13px; }
  .card-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .card-footer a { margin: 8px 0 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article + article { min-height: 0; padding: 26px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 35px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
}

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