:root {
  color-scheme: light;
  --ink: #141821;
  --muted: #555e70;
  --blue: #245aeb;
  --blue-dark: #1746cc;
  --line: #e4e8f2;
  --white: #fff;
  --content-width: 1160px;
  --gutter: 72px;
  --dock-space: clamp(98px, 11vw, 118px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* MailX 导航栏变量（原样复刻） */
  --mx-text: oklch(20% .01 260);
  --mx-muted: oklch(47% .015 260);
  --mx-island: oklch(100% 0 0);
  --mx-accent: oklch(55% .2 258);
  --mx-accent-strong: oklch(49% .21 262);
  --mx-accent-text: oklch(99% 0 0);
  --mx-ring: oklch(20% .02 260 / .1);
  --mx-shadow: 0 1px 2px oklch(20% .02 260 / .05), 0 16px 40px oklch(20% .02 260 / .08);
  --mx-glass: oklch(100% 0 0 / .58);
  --mx-glass-strong: oklch(100% 0 0 / .78);
  --mx-glass-edge: oklch(100% 0 0 / .75);
  --mx-glass-ring: oklch(20% .02 260 / .08);
  --mx-glass-blur: blur(22px) saturate(170%);
  --mx-glow-1: oklch(90% .08 180 / .75);
  --mx-glow-2: oklch(86% .09 245 / .55);
  --mx-glow-3: oklch(88% .08 295 / .6);
  --mx-glow-4: oklch(93% .05 215 / .6);
  --mx-backdrop:
    radial-gradient(42% 38% at 8% 4%, var(--mx-glow-1), transparent 70%),
    radial-gradient(38% 34% at 92% 8%, var(--mx-glow-3), transparent 70%),
    radial-gradient(50% 45% at 62% 52%, var(--mx-glow-2), transparent 72%),
    radial-gradient(45% 40% at 14% 82%, var(--mx-glow-4), transparent 72%);
  --mx-ease: cubic-bezier(.2, .7, .2, 1);
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; }
body::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: var(--mx-backdrop);
  position: fixed;
  inset: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

html { scroll-behavior: smooth; }
.container { width: min(var(--content-width), calc(100% - var(--gutter))); margin-inline: auto; }
[id] { scroll-margin-top: calc(var(--dock-space) + 14px); }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ── 导航栏：一比一复刻 MailX ── */
.site-header { z-index: 20; margin-top: 12px; position: sticky; top: 12px; }
.site-header .bar {
  border-radius: 18px;
  align-items: center;
  gap: 1rem;
  padding: 8px 8px 8px 16px;
  display: flex;
  max-width: 860px;
  margin-inline: auto;
  transition: max-width .45s var(--mx-ease), background-color .25s;
}
.glass {
  background: var(--mx-glass);
  backdrop-filter: var(--mx-glass-blur);
  -webkit-backdrop-filter: var(--mx-glass-blur);
  box-shadow: inset 0 1px 0 var(--mx-glass-edge), 0 0 0 1px var(--mx-glass-ring), var(--mx-shadow);
}
.scrolled .site-header .bar { background: var(--mx-glass-strong); max-width: 1120px; }
.site-header .logo { border-radius: 8px; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.site-header .logo img { width: auto; height: 26px; border-radius: 6px; }
.logo-word {
  color: var(--mx-text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-header nav { align-items: center; gap: 2px; display: flex; }
.site-header nav a {
  white-space: nowrap;
  min-height: 36px;
  color: var(--mx-muted);
  border-radius: 11px;
  align-items: center;
  gap: .35rem;
  padding: 0 .8rem;
  font-size: .92rem;
  text-decoration: none;
  display: inline-flex;
  transition: background-color .15s, color .15s, filter .15s, transform .15s;
}
.site-header nav a:hover { color: var(--mx-text); background: var(--mx-ring); }
.site-header nav a[aria-current="page"] {
  color: var(--mx-text);
  background: var(--mx-glass-strong);
  box-shadow: 0 0 0 1px var(--mx-glass-ring);
}
.site-header .language svg { width: 15px; height: 15px; }
.theme-toggle {
  width: 36px;
  height: 36px;
  color: var(--mx-muted);
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 11px;
  place-items: center;
  padding: 0;
  display: grid;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--mx-text); background: var(--mx-ring); }
.theme-toggle svg { width: 17px; height: 17px; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9edf5;
  --muted: #a3adbf;
  --line: #333c4d;
  --white: #1b202b;
  --mx-text: oklch(96% .005 270);
  --mx-muted: oklch(72% .015 270);
  --mx-ring: oklch(100% 0 0 / .1);
  --mx-shadow: 0 1px 2px oklch(0% 0 0 / .4), 0 16px 40px oklch(0% 0 0 / .35);
  --mx-glass: oklch(24% .015 270 / .55);
  --mx-glass-strong: oklch(26% .015 270 / .78);
  --mx-glass-edge: oklch(100% 0 0 / .1);
  --mx-glass-ring: oklch(100% 0 0 / .08);
  --mx-glow-1: oklch(42% .09 30 / .4);
  --mx-glow-2: oklch(38% .1 350 / .38);
  --mx-glow-3: oklch(40% .12 295 / .45);
  --mx-glow-4: oklch(30% .07 260 / .5);
  --blue: #6b8cff;
  --blue-dark: #8aa4ff;
}

/* ── 深色模式：逐块覆盖硬编码的浅色背景 ── */
:root[data-theme="dark"] .button:not(.primary) { background: var(--mx-glass-strong); color: var(--mx-text); }

:root[data-theme="dark"] .app-preview {
  border-color: #ffffff1a;
  background:
    radial-gradient(ellipse at 92% 100%, #1e4a42, transparent 49%),
    radial-gradient(ellipse at 6% 102%, #2b2f5e, transparent 58%),
    linear-gradient(141deg, #1b2231 10%, #263454 55%, #1e2636);
  box-shadow: 0 22px 60px #00000059, inset 0 1px 0 #ffffff1f;
}
:root[data-theme="dark"] .app-preview::before {
  background:
    linear-gradient(90deg, #ffffff0d 1px, transparent 1px) 0 0 / 31px 31px,
    linear-gradient(0deg, #ffffff0d 1px, transparent 1px) 0 0 / 31px 31px;
}
:root[data-theme="dark"] .preview-light {
  background:
    radial-gradient(ellipse at 78% 25%, #4a456080, transparent 34%),
    radial-gradient(ellipse at 49% 0%, #3a4a6e66, transparent 43%),
    radial-gradient(ellipse at 13% 85%, #3d356080, transparent 43%);
}
:root[data-theme="dark"] .preview-window {
  border-color: #ffffff26;
  background: #ffffff12;
  box-shadow: 0 38px 78px #00000080, 0 8px 18px #00000059;
}
:root[data-theme="dark"] .preview-window img {
  border-color: #ffffff26;
  background: #12161f;
  filter: brightness(.9);
}
:root[data-theme="dark"] .preview-keys {
  border-color: #ffffff2e;
  background: #1b2130d9;
  box-shadow: 0 11px 27px #00000059;
}
:root[data-theme="dark"] .preview-keys kbd {
  border-color: #3a4760;
  background: #252d3d;
  color: #d6e0f0;
  box-shadow: 0 2px 0 #0f131b;
}

:root[data-theme="dark"] .feature {
  border-color: #ffffff1a;
  box-shadow: 0 8px 22px #00000040, inset 0 1px 0 #ffffff14;
}
:root[data-theme="dark"] .keys-card {
  background: radial-gradient(ellipse at 91% 92%, #24406e, transparent 63%), #1b2331;
  border-color: #2b3c5c;
}
:root[data-theme="dark"] .language-card {
  background: radial-gradient(ellipse at 90% 103%, #5a3423, transparent 66%), #26201d;
  border-color: #4a362a;
}
:root[data-theme="dark"] .game-card {
  background: radial-gradient(ellipse at 94% 105%, #3d2f60, transparent 65%), #211c2c;
  border-color: #3b3157;
}
:root[data-theme="dark"] .stats-card {
  background: radial-gradient(ellipse at 94% 108%, #1e4a3a, transparent 71%), #182720;
  border-color: #2b4a3b;
}
:root[data-theme="dark"] .game-card img { border-color: #ffffff1a; }

:root[data-theme="dark"] .keys kbd {
  border-color: #3a4760;
  background: #252d3d;
  color: #d6e0f0;
  box-shadow: 0 3px 0 #0f131b;
}
:root[data-theme="dark"] .keys kbd:first-child { color: #fff; }
:root[data-theme="dark"] .pinyin-preview span {
  border-color: #4a3c30;
  background: #26222a;
  color: #f0e5d8;
}
:root[data-theme="dark"] .pinyin-preview span:first-child {
  border-color: #d98b6a;
  background: #5c3527;
  color: #ffdcc9;
}
:root[data-theme="dark"] .record-example {
  border-color: #33413a;
  background: #1e2531;
  box-shadow: 0 6px 19px #00000040;
}
:root[data-theme="dark"] .record-example > div + div { border-top-color: #ffffff14; }
:root[data-theme="dark"] .record-example b { color: #a5b5ae; }
:root[data-theme="dark"] .record-icon { background: #223c31; color: #6dc79b; }

:root[data-theme="dark"] .download-panel {
  border-color: #ffffff1a;
  background:
    radial-gradient(ellipse at 14% 91%, #26365a, transparent 60%),
    radial-gradient(ellipse at 92% 25%, #1d4038, transparent 58%),
    #1a212e;
  box-shadow: inset 0 1px 0 #ffffff14;
}
:root[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, #ffffff14 1px, transparent 1.5px) 0 0 / 22px 22px;
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.motion .site-header { animation: .6s var(--mx-ease) both header-in; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(58px, 7vw, 96px) 0 clamp(26px, 4.6vw, 66px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, #7695cb32 1px, transparent 1.5px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 87%, #000 9%, transparent 69%);
  pointer-events: none;
}
.hero-copy { text-align: center; }
.hero h2 {
  font-size: clamp(48px, 5.6vw, 72px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: 1.02;
}

/* 打字机动画：隐藏层固定宽度，可见层逐字显示，标题不会左右抖动 */
.type-line { position: relative; display: inline-block; }
.type-ghost { visibility: hidden; }
.type-live {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.type-caret {
  display: inline-block;
  flex: none;
  width: .055em;
  height: .82em;
  margin-left: .04em;
  border-radius: .04em;
  background: var(--blue);
  animation: caret-blink 1.05s steps(1, end) infinite;
}
.type-live.typing .type-caret { animation: none; opacity: 1; }
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-tagline {
  max-width: 30em;
  margin: clamp(14px, 2vw, 22px) auto 0;
  color: var(--ink);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.35;
}
.hero-sub {
  max-width: 42em;
  margin: clamp(12px, 1.6vw, 18px) auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
}
.downloads { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
/* 按钮：一比一复刻 MailX（14px 圆角、玻璃次按钮、渐变主按钮） */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .55rem 1.35rem;
  border: 0;
  border-radius: 14px;
  background: var(--mx-glass-strong);
  color: var(--mx-text);
  box-shadow: inset 0 1px 0 var(--mx-glass-edge), 0 0 0 1px var(--mx-glass-ring), 0 1px 2px oklch(0% 0 0 / .05);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, filter .15s, transform .15s;
}
.button:hover { background: var(--mx-island); }
.button.primary {
  color: var(--mx-accent-text);
  background: linear-gradient(180deg, var(--mx-accent), var(--mx-accent-strong));
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .25), 0 1px 2px oklch(0% 0 0 / .1), 0 8px 20px -6px var(--mx-accent);
}
.button.primary:hover { filter: brightness(1.07); }

.app-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin-top: clamp(37px, 5.1vw, 61px);
  padding: clamp(37px, 5.2vw, 62px) clamp(14px, 6.5vw, 79px) clamp(18px, 5vw, 53px);
  border: 1px solid #dce5f7;
  border-radius: clamp(20px, 3.3vw, 38px);
  background:
    radial-gradient(ellipse at 92% 100%, #c6e8e1, transparent 49%),
    radial-gradient(ellipse at 6% 102%, #c9cefa, transparent 58%),
    linear-gradient(141deg, #f2f6ff 10%, #d5e5ff 55%, #e5efff);
  box-shadow: 0 22px 60px #2e53941a, inset 0 1px 0 #fff;
}
.app-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #fff8 1px, transparent 1px) 0 0 / 31px 31px,
    linear-gradient(0deg, #fff8 1px, transparent 1px) 0 0 / 31px 31px;
  mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
  pointer-events: none;
}
.preview-light {
  position: absolute;
  inset: -18% -8% -12%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 78% 25%, #fff9dcad, transparent 34%),
    radial-gradient(ellipse at 49% 0%, #ffffffd9, transparent 43%),
    radial-gradient(ellipse at 13% 85%, #dcceffb0, transparent 43%);
  pointer-events: none;
}
.preview-window {
  position: relative;
  padding: clamp(3px, .6vw, 7px);
  border: 1px solid #ffffffd1;
  border-radius: clamp(10px, 1.7vw, 21px);
  background: #ffffff75;
  box-shadow: 0 38px 78px #27477838, 0 8px 18px #2c50812b;
}
.preview-window img {
  width: 100%;
  border: 1px solid #ccd6e8;
  border-radius: clamp(6px, 1.15vw, 14px);
  background: #fff;
}
.preview-keys {
  position: absolute;
  top: clamp(10px, 2.5vw, 26px);
  right: clamp(10px, 3.9vw, 48px);
  display: flex;
  gap: clamp(4px, .6vw, 7px);
  padding: clamp(6px, .85vw, 10px);
  border: 1px solid #fff;
  border-radius: clamp(10px, 1.5vw, 18px);
  background: #ffffffb5;
  backdrop-filter: blur(14px);
  box-shadow: 0 11px 27px #34578e24;
  transform: rotate(3deg);
  pointer-events: none;
}
.preview-keys kbd {
  display: grid;
  place-items: center;
  width: clamp(21px, 3.1vw, 38px);
  aspect-ratio: 1;
  border: 1px solid #cad6ed;
  border-radius: clamp(5px, .8vw, 9px);
  color: #3a547c;
  background: #fdfdff;
  box-shadow: 0 2px 0 #d8e1f0;
  font: 680 clamp(10px, 1.2vw, 15px) ui-monospace, "Courier New", monospace;
}
.preview-keys kbd:first-child { color: #fff; border-color: #285bea; background: #2c62f1; box-shadow: 0 2px 0 #204dc3; }

.features { padding-block: clamp(40px, 5vw, 69px) clamp(53px, 8vw, 98px); scroll-margin-top: 20px; }
.features > h2, .download-panel h2 {
  font-size: clamp(36px, 4.9vw, 60px);
  font-weight: 820;
  letter-spacing: -.05em;
  line-height: 1.16;
  text-align: center;
}
.features-lede {
  max-width: 30em;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 20px);
  text-align: center;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.feature {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 27px;
  min-height: 276px;
  padding: clamp(20px, 3.1vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 22px #233c6810, inset 0 1px 0 #fff;
}
.feature h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 780; letter-spacing: -.034em; line-height: 1.23; }
.feature p { max-width: 34em; margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.keys-card { background: radial-gradient(ellipse at 91% 92%, #dce9ff, transparent 63%), #f0f5ff; border-color: #e1eafc; }
.language-card { background: radial-gradient(ellipse at 90% 103%, #ffe5d8, transparent 66%), #fff7ed; border-color: #f3e5d9; }
.game-card { background: radial-gradient(ellipse at 94% 105%, #e6ddfb, transparent 65%), #f7f4fe; border-color: #ebe5f7; }
.stats-card { background: radial-gradient(ellipse at 94% 108%, #d6f2e6, transparent 71%), #eefaf6; border-color: #e0efe8; }
.game-card img { width: 100%; border: 1px solid #322d4a1a; border-radius: 13px; }

.keys { display: flex; gap: clamp(3px, .9vw, 10px); align-items: stretch; padding: 10px 0 16px; }
.keys kbd {
  display: grid;
  flex: 1;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1 / 1.08;
  border: 1px solid #cdd9f4;
  border-radius: clamp(5px, 1vw, 12px);
  background: var(--white);
  box-shadow: 0 3px 0 #c9d7f4;
  color: #38537d;
  font: 650 clamp(12px, 1.8vw, 21px) ui-monospace, "Courier New", monospace;
}
.keys kbd:nth-child(4) { margin-right: clamp(3px, .9vw, 10px); }
.keys kbd:first-child { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 0 #1c46c5; }
.pinyin-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, .9vw, 10px); padding-block: 2px 13px; }
.pinyin-preview span {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: clamp(6px, 1.15vw, 13px) 2px;
  border: 1px solid #ead5bf;
  border-radius: 10px;
  background: #fffdfa;
  color: #392e29;
}
.pinyin-preview span:first-child { color: #562e25; border-color: #dc9c87; background: #ffe6dc; }
.pinyin-preview small { font: clamp(10px, 1.24vw, 14px) ui-monospace, "Courier New", monospace; }
.pinyin-preview b { font-size: clamp(21px, 3.05vw, 38px); font-weight: 620; line-height: 1.2; }
.record-example {
  overflow: hidden;
  margin-bottom: 3px;
  border-radius: 13px;
  border: 1px solid #d6e8df;
  background: var(--white);
  box-shadow: 0 6px 19px #2355480e;
}
.record-example > div { display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; align-items: center; padding: 10px 14px; font-size: 14px; }
.record-example > div + div { border-top: 1px solid #edf2ef; }
.record-example b { color: #596d66; font-size: 12px; font-weight: 550; }
.record-icon { position: relative; width: 26px; height: 26px; border-radius: 7px; background: #e4f5ec; color: #247b58; }
.record-icon::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.speed-icon::after { content: ""; position: absolute; left: 12px; top: 9px; width: 1.5px; height: 6px; background: currentColor; transform: rotate(30deg); }
.accuracy-icon::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: currentColor; }
.time-icon::after { content: ""; position: absolute; top: 9px; left: 12px; width: 4px; height: 5px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; }

.download-section { padding-bottom: 55px; scroll-margin-top: 20px; }
.download-panel {
  display: grid;
  justify-items: center;
  padding: clamp(27px, 5.5vw, 62px) 20px clamp(27px, 4.5vw, 51px);
  border: 1px solid #e5eaf5;
  border-radius: 27px;
  background:
    radial-gradient(ellipse at 14% 91%, #e3ebff, transparent 60%),
    radial-gradient(ellipse at 92% 25%, #e5f5ee, transparent 58%),
    #f5f8fe;
  box-shadow: inset 0 1px 0 #fff;
  text-align: center;
}
.download-panel > img { margin-bottom: 12px; }
.download-panel .downloads { margin-top: 21px; }
.install-note { max-width: 440px; margin-top: 11px; color: var(--muted); font-size: 14px; scroll-margin-top: 24px; }
.install-note summary { width: fit-content; min-height: 44px; margin-inline: auto; padding-block: 10px; cursor: pointer; }
.install-note summary:hover { color: var(--blue); }
.install-note p { margin: 0 0 5px; text-align: left; }
.site-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer > span { color: var(--ink); font-weight: 700; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; }
.site-footer a:hover { color: var(--blue); }

@media (max-width: 768px) {
  :root { --gutter: 48px; }
  .feature { min-height: 235px; }
}

@media (max-width: 640px) {
  :root { --dock-space: 70px; --gutter: 36px; }
  .site-header .bar { gap: .25rem; padding-left: 12px; }
  .site-header nav a { padding: 0 .5rem; font-size: .88rem; }
  .site-header nav .wide, .site-header nav .roomy, .site-header .language span { display: none; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(55px, 14vw, 76px); }
  .hero-tagline { font-size: clamp(19px, 5.2vw, 24px); }
  .hero-sub { margin-top: 11px; }
  .downloads { margin-top: 21px; gap: 8px; }
  .button { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 23px; gap: 12px; }
  .feature { min-height: 0; border-radius: 19px; }
  .keys { padding: 3px 0 7px; }
  .keys kbd { aspect-ratio: 1 / 1.03; }
  .pinyin-preview { padding-bottom: 4px; }
  .download-section { padding-bottom: 40px; }
  .download-panel { border-radius: 19px; }
}

@media (max-width: 420px) {
  .site-header nav .home { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .site-header .bar { transition: none; }
  .motion .site-header { animation: none; }
  .type-caret { display: none; }
  .type-live.typing .type-caret { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .58s var(--ease-out) both; }
  .app-preview { animation: rise-in .8s .11s var(--ease-out) both; }
  .preview-light {
    transform: translate(var(--light-x, 0), var(--light-y, 0));
    transition: transform .9s var(--ease-out);
    animation: light-in 1.4s .2s ease-out both;
  }
  .preview-keys kbd { animation: key-tap .43s var(--ease-out) both; }
  .preview-keys kbd:nth-child(1) { animation-delay: .7s; }
  .preview-keys kbd:nth-child(2) { animation-delay: .82s; }
  .preview-keys kbd:nth-child(3) { animation-delay: .94s; }
  .preview-keys kbd:nth-child(4) { animation-delay: 1.06s; }
  [data-reveal].in-view { animation: rise-in .64s var(--ease-out) backwards; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: translateY(1px); }
  .feature { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
  .feature:hover { transform: translateY(-4px); box-shadow: 0 15px 34px #233c681f, inset 0 1px 0 #fff; }
}

@keyframes rise-in {
  from { opacity: .65; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes light-in {
  from { opacity: .35; }
  to { opacity: 1; }
}

@keyframes key-tap {
  0%, 100% { transform: translateY(0); }
  38% {
    transform: translateY(3px);
    color: #1746cc;
    background: #e2ebff;
    box-shadow: 0 0 0 #d8e1f0;
  }
}
