:root {
  --paper: #f4f5ef;
  --surface: #fbfcf8;
  --ink: #111512;
  --muted: #5d675f;
  --line: #a9b2a9;
  --green: #245c4c;
  --green-dark: #173f35;
  --green-soft: #dce9e0;
  --warm: #b57d00;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Microsoft YaHei UI", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #5b9a80; outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border: 2px solid white; background: var(--ink); color: white; font-family: var(--mono); }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 20; border-bottom: 2px solid var(--ink); background: #dce9e0 url("assets/pixel-field.svg") center top / cover; image-rendering: pixelated; }
.nav-wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.05em; }
.brand img { width: 38px; height: 38px; padding: 6px; background: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; border: 1px solid var(--ink); background: rgba(244, 245, 239, .8); }
.nav-links a { padding: 6px 15px; border-right: 1px solid var(--ink); font-family: var(--sans); font-size: 13px; }
.nav-links a:last-child { border-right: 0; }
.nav-links a:hover, .nav-feedback:hover { background: var(--ink); color: white; }
.nav-feedback { padding: 7px 13px; border: 1px solid var(--ink); background: var(--ink); color: white; font-family: var(--sans); font-size: 13px; }

.hero { display: grid; width: 100%; min-height: 660px; padding: 48px max(32px, calc((100vw - 1180px) / 2)) 92px; grid-template-columns: 1fr 265px; gap: 54px 70px; align-items: end; border-bottom: 2px solid var(--ink); background: linear-gradient(180deg, rgba(244, 245, 239, 0) 0%, rgba(244, 245, 239, .55) 56%, var(--paper) 100%), url("assets/pixel-field.svg") center top / cover; image-rendering: pixelated; }
.release-terminal { grid-column: 1 / -1; width: min(650px, 100%); border: 2px solid var(--ink); background: rgba(244, 245, 239, .8); box-shadow: 6px 6px 0 rgba(17, 21, 18, .16); font-family: var(--mono); }
.terminal-title { padding: 5px 12px; background: var(--ink); color: #f3f5ef; font-size: 11px; letter-spacing: .07em; }
.terminal-body { display: flex; padding: 13px; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.terminal-body strong { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.terminal-body span:last-child { color: var(--muted); }
.eyebrow, .section-kicker { margin: 0 0 20px; color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .09em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--green); box-shadow: 0 0 0 3px rgba(36, 92, 76, .14); }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(60px, 7.2vw, 94px); line-height: 1.04; font-weight: 720; letter-spacing: -.075em; }
.hero h1 span { color: var(--warm); white-space: nowrap; }
html[lang="en"] .hero h1 { font-size: clamp(52px, 6.3vw, 82px); }
html[lang="en"] .hero h1 span { white-space: normal; }
.hero-lead { max-width: 700px; margin: 30px 0 0; color: #4f5a52; font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; gap: 16px; border: 2px solid var(--ink); border-radius: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.button-primary { background: var(--ink); color: white; box-shadow: 4px 4px 0 #83a18e; }
.button-primary:hover { background: var(--green); }
.button-secondary { background: rgba(251, 252, 248, .65); }
.button-secondary:hover { background: white; box-shadow: 4px 4px 0 #b6c3b7; }
.hero-aside { padding: 20px 0 4px 24px; border-left: 1px solid var(--ink); color: #4e5a51; font-family: var(--sans); font-size: 14px; }
.hero-aside p { margin: 0 0 15px; }
.hero-aside p:last-child { margin-bottom: 0; }
.hero-aside strong { color: var(--ink); font-weight: 700; }
.hero-aside .aside-number { margin-bottom: 36px; color: var(--green); font-family: var(--mono); font-size: 11px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 30px; }
.section-heading h2, .workflow-intro h2, .download-grid h2 { max-width: 760px; margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.22; font-weight: 680; letter-spacing: -.055em; }
.section-heading > p { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; }
.section-kicker { margin-bottom: 13px; }
.product-preview { padding-top: 76px; padding-bottom: 90px; }
.preview-heading { align-items: center; }
.product-frame { overflow: hidden; margin: 0; border: 2px solid var(--ink); border-radius: 0; background: white; box-shadow: 9px 9px 0 #c7d2c7; }
.frame-bar { position: relative; display: flex; height: 36px; padding: 0 13px; align-items: center; gap: 7px; border-bottom: 2px solid var(--ink); background: var(--ink); }
.frame-bar span { width: 7px; height: 7px; background: #738078; }
.frame-bar p { position: absolute; left: 50%; margin: 0; transform: translateX(-50%); color: #d9e3da; font-family: var(--mono); font-size: 11px; }
.product-frame > img, .product-frame > video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #f7f8f4; }
.product-frame > video { object-fit: contain; background: #0e151b; }
.figure-caption { margin: 17px 0 0; color: #6b756d; font-family: var(--sans); font-size: 12px; text-align: center; }

.feature-section { padding-bottom: 95px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--surface); }
.feature-card { min-height: 280px; padding: 26px 28px; }
.feature-card + .feature-card { border-left: 1px solid var(--ink); }
.feature-index { color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.feature-card h3 { margin: 40px 0 14px; font-size: 23px; font-weight: 650; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.workflow-section { padding: 88px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: #dfe9e1; }
.workflow-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.workflow-intro > p:last-child { max-width: 430px; margin-top: 26px; color: var(--muted); }
.workflow-list { margin: 0; padding: 0; border: 2px solid var(--ink); background: var(--paper); list-style: none; }
.workflow-list li { display: flex; gap: 20px; padding: 21px 22px; border-bottom: 1px solid var(--ink); }
.workflow-list li:last-child { border-bottom: 0; }
.workflow-list li > span { display: flex; flex: 0 0 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--green-soft); font-family: var(--mono); font-size: 11px; }
.workflow-list h3 { margin: 0 0 3px; font-size: 17px; font-weight: 650; }
.workflow-list p { margin: 0; color: var(--muted); font-size: 14px; }

.security-section { padding: 92px 0; border-bottom: 2px solid var(--ink); background: #141b17; color: #eef3ec; }
.security-heading > p { color: #aab8af; }
.security-heading .section-kicker { color: #93b9a4; }
.data-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #74877a; }
.data-card { min-height: 260px; padding: 26px; background: #1b2520; }
.data-card + .data-card { border-left: 1px solid #74877a; }
.data-label { color: #9fb6a9; font-family: var(--sans); font-size: 12px; }
.data-card h3 { margin: 36px 0 14px; font-size: 20px; font-weight: 620; }
.data-card p { margin: 0; color: #b3c0b8; font-size: 15px; }
.security-bottom { display: grid; grid-template-columns: 1fr 390px; gap: 90px; align-items: center; margin-top: 76px; }
.security-points h3 { margin: 0 0 24px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.security-points ul { margin: 0 0 28px; padding: 0; border-top: 1px solid #53665a; list-style: none; color: #b3c0b8; font-family: var(--sans); font-size: 13px; }
.security-points li { padding: 12px 0; border-bottom: 1px solid #53665a; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-family: var(--sans); font-size: 12px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.security-section .text-link { color: #a5c9b3; }
.launcher-frame { margin: 0; border: 1px solid #74877a; background: #1b2520; box-shadow: 7px 7px 0 #35483c; }
.launcher-frame img { width: 100%; height: auto; }
.launcher-frame figcaption { padding: 9px; border-top: 1px solid #74877a; color: #a7b5ab; font-family: var(--sans); font-size: 11px; text-align: center; }

.docs-section { padding-top: 90px; padding-bottom: 95px; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.doc-card { display: flex; min-height: 260px; padding: 25px; flex-direction: column; background: var(--surface); transition: background .15s ease, color .15s ease; }
.doc-card + .doc-card { border-left: 1px solid var(--ink); }
.doc-card:hover { background: var(--green-soft); }
.doc-card > span { color: var(--green); font-family: var(--mono); font-size: 11px; }
.doc-card h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 650; }
.doc-card p { margin: 0; color: var(--muted); font-size: 15px; }
.doc-card strong { margin-top: auto; padding-top: 20px; color: var(--green); font-family: var(--sans); font-size: 12px; font-weight: 650; }

.download-section { padding: 82px 0; border-top: 2px solid var(--ink); background: #e4e9e1; }
.download-grid { display: grid; grid-template-columns: 1fr 470px; gap: 100px; align-items: center; }
.download-grid > div:first-child > p:last-child { max-width: 470px; margin-top: 24px; color: var(--muted); }
.download-card { padding: 0; border: 2px solid var(--ink); background: var(--surface); box-shadow: 7px 7px 0 #b5c2b5; }
.download-card > *:not(.download-status) { margin-right: 26px; margin-left: 26px; }
.download-status { display: flex; padding: 10px 26px; align-items: center; border-bottom: 2px solid var(--ink); background: var(--ink); color: white; font-family: var(--sans); font-size: 13px; }
.download-status .status-dot { background: #a5c9b3; }
.download-card > p { margin-top: 20px; color: var(--muted); font-size: 14px; }
.release-gates { margin-top: 20px; margin-bottom: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; color: #59645b; font-family: var(--sans); font-size: 12px; }
.release-gates li { padding: 5px 0; }
.release-gates li::before { content: "[ ]"; margin-right: 9px; color: var(--green); font-family: var(--mono); }
.download-button { width: calc(100% - 52px); margin-bottom: 18px; }
.download-button[aria-disabled="true"] { border-color: #929b92; background: #dce1d8; color: #737d73; box-shadow: none; cursor: not-allowed; }
.download-card .checksum-note { margin-bottom: 20px; font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.download-card > .text-link { margin-bottom: 24px; }

.site-footer { padding: 28px 0; border-top: 2px solid var(--ink); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-wrap .brand { font-size: 18px; }
.footer-wrap .brand img { width: 32px; height: 32px; }
.footer-wrap p { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.footer-wrap > div { display: flex; gap: 20px; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.footer-wrap a:hover { color: var(--green); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero-aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 0; border-top: 1px solid var(--ink); border-left: 0; }
  .hero-aside .aside-number { grid-column: 1 / -1; margin-bottom: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading > p { max-width: 620px; }
  .workflow-grid, .security-bottom, .download-grid { grid-template-columns: 1fr; gap: 48px; }
  .launcher-frame { max-width: 440px; }
  .download-card { max-width: 580px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav-wrap { min-height: 62px; gap: 10px; }
  .nav-links { display: flex; margin-left: auto; border: 0; background: none; }
  .nav-links a { padding: 6px 8px; border: 0; font-size: 12px; }
  .nav-links a:nth-child(-n+2), .nav-links .language-link { display: none; }
  .nav-feedback { margin-left: 0; padding: 7px 10px; font-size: 12px; }
  .hero { min-height: auto; padding: 32px 16px 64px; gap: 34px; }
  .terminal-body { align-items: flex-start; flex-direction: column; gap: 5px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); line-height: 1.07; }
  html[lang="en"] .hero h1 { font-size: clamp(40px, 10.5vw, 54px); }
  .hero-lead { font-size: 16px; }
  .hero-aside { grid-template-columns: 1fr; gap: 0; }
  .hero-aside .aside-number { margin-bottom: 18px; }
  .product-preview { padding-top: 58px; }
  .product-preview, .feature-section, .docs-section { padding-bottom: 68px; }
  .product-frame { box-shadow: 5px 5px 0 #c7d2c7; }
  .feature-grid, .data-flow-grid, .docs-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card + .feature-card, .data-card + .data-card, .doc-card + .doc-card { border-top: 1px solid var(--ink); border-left: 0; }
  .feature-card h3 { margin-top: 24px; }
  .workflow-section, .security-section { padding: 68px 0; }
  .data-card { min-height: auto; }
  .data-card + .data-card { border-top-color: #74877a; }
  .data-card h3 { margin-top: 24px; }
  .security-bottom { margin-top: 52px; }
  .doc-card { min-height: 220px; }
  .download-section { padding: 64px 0; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .footer-wrap p { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
