:root {
  --ink: #1b2024;
  --ink-soft: #353c41;
  --paper: #ffffff;
  --surface: #f3f5f6;
  --line: #dce1e3;
  --muted: #687278;
  --teal: #159c8d;
  --teal-bright: #27b8a7;
  --coral: #ff6b5b;
  --cream-white: #f7f8f5;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #455056;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

.site-nav svg {
  width: 17px;
  height: 17px;
}

.nav-github {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  height: clamp(540px, calc(100svh - 116px), 700px);
  min-height: 540px;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: max(4vw, calc((100vw - 1180px) / 2));
  width: clamp(340px, 36vw, 480px);
  height: auto;
  transform: translateY(-54%);
  filter: drop-shadow(0 26px 40px rgba(27, 32, 36, 0.16));
}

.hero-copy {
  width: min(590px, 56%);
  padding-bottom: 96px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.product-meta span {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.hero h1 {
  margin: 0;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
}

.hero-tagline {
  margin: 18px 0 10px;
  color: var(--ink-soft);
  font-size: 24px;
  font-weight: 700;
}

.hero-description {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--teal);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: #bfc7ca;
}

.button-secondary:hover {
  border-color: var(--ink);
}

.download-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.download-note svg {
  width: 16px;
  height: 16px;
}

.shortcut-summary {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(670px, 64%);
  border-top: 1px solid #cbd1d4;
}

.shortcut-summary > div {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 22px;
  border-right: 1px solid #cbd1d4;
}

.shortcut-summary > div:first-child {
  padding-left: 0;
}

.shortcut-summary span {
  margin-right: 16px;
  color: var(--muted);
  font-size: 13px;
}

.shortcut-summary strong {
  font-size: 14px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9c1c5;
  border-bottom-width: 3px;
  border-radius: 5px;
  font: 700 12px/1 Inter, system-ui, sans-serif;
  white-space: nowrap;
}

.shortcut-summary b,
.key-group b {
  margin-inline: 5px;
  color: var(--muted);
  font-size: 12px;
}

.section-dark {
  color: var(--cream-white);
  background: var(--ink);
}

.features {
  padding: 92px 0 86px;
}

.section-heading {
  max-width: 620px;
}

.section-heading > p,
.download-label {
  margin: 0 0 10px;
  color: var(--teal-bright);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2,
.download-section h2,
.details-section h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  margin-top: 58px;
}

.feature-grid article {
  padding-top: 24px;
  border-top: 2px solid #495156;
}

.feature-grid article:nth-child(1) {
  border-color: var(--teal-bright);
}

.feature-grid article:nth-child(2) {
  border-color: var(--coral);
}

.feature-grid > article > svg {
  width: 30px;
  height: 30px;
  color: var(--cream-white);
}

.feature-grid h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: #aeb7bb;
  font-size: 14px;
}

.shortcuts-section {
  padding: 100px 0;
  background: var(--paper);
}

.shortcuts-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
  align-items: start;
}

.section-heading-dark > p {
  color: var(--coral);
}

.section-heading-dark span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.shortcut-list {
  border-top: 1px solid var(--line);
}

.shortcut-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
}

.shortcut-number {
  color: var(--teal);
  font: 700 13px/1 Inter, system-ui, sans-serif;
}

.shortcut-row strong,
.shortcut-row > div > span {
  display: block;
}

.shortcut-row strong {
  font-size: 16px;
}

.shortcut-row > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.key-group {
  display: flex;
  align-items: center;
}

.download-section {
  padding: 82px 0;
  color: var(--paper);
  background: var(--teal);
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 80px;
  align-items: center;
}

.download-label {
  color: var(--cream-white);
}

.download-section p:last-child {
  max-width: 650px;
  margin: 16px 0 0;
  color: #d7f1ec;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.button-light {
  min-width: 205px;
  color: var(--ink);
  background: var(--paper);
}

.button-light:hover {
  background: var(--cream-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.details-section {
  padding: 90px 0;
  background: var(--surface);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 90px;
}

.details-grid > div {
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.details-grid > div:first-child {
  border-color: var(--teal);
}

.details-grid > div:last-child {
  border-color: var(--coral);
}

.details-grid > div > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
}

.details-section h2 {
  font-size: 25px;
}

.details-section p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-links {
  display: flex;
  gap: 22px;
  margin-top: 18px;
}

.contact-links a {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  color: #bec5c8;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: var(--paper);
  font-size: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

.site-footer div:last-child {
  display: flex;
  gap: 18px;
}

.site-footer a {
  font-size: 13px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-bright);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-nav {
    gap: 18px;
  }

  .hero-icon {
    right: -30px;
    width: 300px;
  }

  .hero-copy {
    width: 64%;
  }

  .shortcut-summary {
    width: 78%;
  }

  .shortcuts-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .container {
    width: min(100% - 30px, 1120px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 15px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 8px;
  }

  .nav-github {
    padding-left: 8px;
    border-left: 0;
  }

  .hero {
    height: auto;
    min-height: 600px;
  }

  .hero-inner {
    min-height: 600px;
    padding-top: 202px;
  }

  .hero-icon {
    top: 24px;
    right: 20px;
    width: 170px;
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 16px 24px rgba(27, 32, 36, 0.14));
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 138px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .shortcut-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .shortcut-summary > div {
    min-height: 62px;
    padding: 0 12px;
  }

  .shortcut-summary > div:nth-child(2) {
    border-right: 0;
  }

  .shortcut-summary > div:last-child {
    display: none;
  }

  .shortcut-summary > div:first-child {
    padding-left: 0;
  }

  .features,
  .shortcuts-section,
  .details-section {
    padding: 68px 0;
  }

  .section-heading h2,
  .download-section h2 {
    font-size: 30px;
  }

  .feature-grid,
  .details-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-grid {
    margin-top: 42px;
  }

  .shortcut-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .key-group {
    grid-column: 2;
    margin-top: 2px;
  }

  .download-section {
    padding: 64px 0;
  }

  .download-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-actions {
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 720px) and (max-height: 650px) {
  .hero {
    height: calc(100svh - 88px);
    min-height: 480px;
  }

  .hero-inner {
    min-height: 480px;
    padding-top: 142px;
  }

  .hero-icon {
    top: 16px;
    right: 16px;
    width: 118px;
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .product-meta {
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-tagline {
    margin: 8px 0 0;
    font-size: 18px;
  }

  .hero-description,
  .shortcut-summary {
    display: none;
  }

  .hero-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .button {
    flex: 1;
    width: auto;
    min-width: 0;
    padding-inline: 8px;
    font-size: 13px;
  }

  .hero-actions .button svg {
    width: 17px;
    height: 17px;
  }

  .download-note {
    margin-top: 9px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
