:root {
  --ink: #17243f;
  --blue: #637fa6;
  --blue-deep: #405d86;
  --cream: #f5ead5;
  --paper: #fffaf0;
  --amber: #edae3b;
  --coral: #dc765f;
  --sage: #808767;
  --line: rgba(23, 36, 63, 0.14);
  --shadow: 0 24px 70px rgba(67, 55, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 6%, rgba(237, 174, 59, 0.18), transparent 24rem),
    linear-gradient(180deg, #f7eedf 0%, #fffaf2 48%, #f2e6d2 100%);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 0.92rem;
}

.brand,
.quiet-link {
  text-decoration: none;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(23, 36, 63, 0.48);
  font-size: 0.84rem;
  font-weight: 800;
}

.language-switcher a {
  color: rgba(23, 36, 63, 0.58);
  text-decoration: none;
}

.language-switcher a.active,
.language-switcher a:hover {
  color: var(--ink);
}

.usage-license,
.footer-copyright,
.footer-tagline,
.footer-ai-credit {
  color: rgba(23, 36, 63, 0.56);
  font-size: 0.82rem;
  font-weight: 400;
}

.footer-brand-block,
.footer-details {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-label {
  color: var(--ink);
  font-weight: 800;
}

.footer-find {
  color: rgba(23, 36, 63, 0.56);
  font-size: 0.82rem;
  font-weight: 400;
}

footer .usage-license,
footer .usage-license a,
footer .footer-copyright,
footer .footer-tagline,
footer .footer-ai-credit,
footer .footer-find,
footer .footer-find a {
  font-weight: 400;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 42px;
  padding: 68px 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.zh-display {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(23, 36, 63, 0.77);
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

.zh {
  color: rgba(23, 36, 63, 0.68);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.hero .zh {
  margin-top: 14px;
  font-size: 1rem;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 10px 26px rgba(23, 36, 63, 0.2);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.74);
}

.compatibility {
  margin: 18px 0 0;
  color: rgba(23, 36, 63, 0.54);
  font-size: 0.82rem;
}

.patch-wrap {
  position: relative;
  z-index: 0;
  max-width: 510px;
  margin: 0 auto;
}

.patch-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 18px rgba(50, 49, 51, 0.15));
}

.glow {
  position: absolute;
  z-index: 1;
  inset: 11% 2% 7%;
  border-radius: 48% 52% 45% 55%;
  background: rgba(255, 249, 226, 0.92);
  box-shadow: 0 0 0 28px rgba(236, 176, 62, 0.08);
  transform: rotate(-4deg);
}

.patch-wrap figcaption {
  position: absolute;
  z-index: 3;
  right: -2%;
  bottom: 8%;
  width: 210px;
  padding: 15px 17px;
  border: 1px solid rgba(23, 36, 63, 0.11);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 14px 35px rgba(67, 55, 34, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.35;
}

.patch-wrap figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--coral);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.downloads {
  padding: 96px 0 84px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 670px;
  margin-bottom: 38px;
}

.section-heading h2,
.note-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.note-card p {
  color: rgba(23, 36, 63, 0.7);
}

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

.download-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 63, 0.12);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.77);
  box-shadow: 0 14px 45px rgba(67, 55, 34, 0.07);
}

.download-card.featured {
  background: linear-gradient(145deg, rgba(99, 127, 166, 0.2), rgba(255, 250, 240, 0.88));
}

.download-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(220, 118, 95, 0.14), rgba(255, 250, 240, 0.88));
}

.download-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(237, 174, 59, 0.16), rgba(255, 250, 240, 0.9));
}

.download-card:nth-child(4) {
  background: linear-gradient(145deg, rgba(128, 135, 103, 0.16), rgba(255, 250, 240, 0.9));
}

.card-number {
  position: absolute;
  top: 16px;
  right: 25px;
  color: rgba(23, 36, 63, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
}

.card-label {
  position: relative;
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.download-card h3 {
  position: relative;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.download-card p:not(.card-label) {
  max-width: 560px;
  margin: 0 0 10px;
  color: rgba(23, 36, 63, 0.72);
}

.download-card .zh {
  font-size: 0.92rem;
}

.download-link {
  width: fit-content;
  margin-top: auto;
  padding-top: 28px;
  border-bottom: 2px solid currentColor;
  font-weight: 850;
  text-decoration: none;
}

.download-link span {
  display: inline-block;
  padding-left: 4px;
  color: var(--coral);
}

.note-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 42px;
  margin: 48px 0 100px;
  padding: 46px;
  border: 1px solid rgba(23, 36, 63, 0.13);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.note-card h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
}

.note-card p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
}

footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 28px 42px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: rgba(23, 36, 63, 0.56);
  font-size: 0.78rem;
}

.footer-language {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 4px;
}

footer p {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.footer-ai-credit {
  max-width: 34rem;
  margin-top: 6px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
  }

  .patch-wrap {
    width: min(96%, 510px);
  }

  .card-grid,
  .note-card,
  footer {
    grid-template-columns: 1fr;
  }

  .note-card .button {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 26px, 1160px);
  }

  .site-header {
    padding-top: 18px;
  }

  .hero {
    gap: 18px;
    padding: 44px 0 68px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

  .hero h1.zh-display {
    font-size: clamp(2.8rem, 11vw, 3.6rem);
    letter-spacing: -0.06em;
    line-height: 1;
  }

  .hero-actions .button {
    width: 100%;
  }

  .patch-wrap figcaption {
    right: 0;
    bottom: 4%;
    width: 185px;
    font-size: 0.86rem;
  }

  .downloads {
    padding: 72px 0 64px;
  }

  .download-card {
    min-height: 365px;
    padding: 27px;
    border-radius: 24px;
  }

  .note-card {
    margin-bottom: 70px;
    padding: 29px;
  }
}

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

  .button {
    transition: none;
  }
}
