:root {
  color-scheme: light;
  color: #14203a;
  background: #fff;
  font: 16px / 1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --blue: #2563eb;
  --muted: #475569;
  --line: #dde6f2;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: #1d4ed8; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 4.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.lockup { display: inline-flex; align-items: center; gap: .65rem; color: inherit; font-size: 1.15rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.lockup img { border-radius: .65rem; }
nav { display: flex; justify-content: space-between; gap: clamp(.75rem, 3vw, 2rem); }
nav a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--muted); font-size: .9375rem; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: #1d4ed8; text-decoration: underline; text-underline-offset: .3em; }

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% -10%, #edf3ff 0%, #f5f8ff 52%, #fafcff 100%); }
.hero-content { display: flex; flex-direction: column; align-items: center; padding-block: 3.25rem 3.5rem; text-align: center; }
.hero-logo { margin-bottom: 1rem; border-radius: 1.3rem; box-shadow: 0 12px 28px #10266120; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 750; letter-spacing: .025em; }
.hero p { margin-top: .75rem; color: var(--muted); font-size: 1.125rem; }
.download { margin-top: 1.65rem; padding: .7rem 1.55rem; border-radius: .7rem; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.download:hover { background: #1d4ed8; }
.features { padding-block: 2.75rem 3rem; }
.features h2 { margin-bottom: 1.35rem; font-size: 1.55rem; }
.features ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.features li { padding: 1.2rem 1.1rem; border: 1px solid var(--line); border-radius: .8rem; }
.features h3 { margin-bottom: .55rem; font-size: 1.125rem; }
.features p { color: var(--muted); }

.reading { width: min(50rem, calc(100% - 3rem)); padding-block: 3.5rem; }
.reading h1 { margin-bottom: 1.65rem; font-size: clamp(1.9rem, 4vw, 2.5rem); }
.document { line-height: 1.85; overflow-wrap: anywhere; }
.document p { margin-bottom: .9rem; }
.contact { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .85rem 1.15rem; margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; overflow-wrap: anywhere; }

.footer { background: #f8fafc; border-top: 1px solid var(--line); color: var(--muted); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1rem; font-size: .875rem; }
.footer a { text-underline-offset: .2em; }

@media (max-width: 800px) {
  .features ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { display: grid; grid-template-columns: minmax(0,1fr); justify-items: start; gap: .15rem; padding-top: .65rem; }
  nav { width: 100%; gap: .25rem; }
  .hero-content { padding-block: 1.55rem 1.65rem; }
  .hero-logo { width: 75px; height: 75px; border-radius: 1rem; }
  .hero p { font-size: 1rem; }
  .features { padding-block: 1.25rem 1.3rem; }
  .features h2 { margin-bottom: 1rem; font-size: 1.3rem; }
  .features ul { gap: .65rem; }
  .features li { padding: .65rem; }
  .features h3 { font-size: 1rem; }
  .features p { line-height: 1.5; }
  .reading { padding-block: 2rem; }
}

@media (max-width: 320px) {
  nav { flex-wrap: wrap; }
  .features ul { grid-template-columns: 1fr; }
}
