:root {
  --ink: #123b2d;
  --ink-strong: #082f22;
  --muted: #68756d;
  --paper: #f7f6ef;
  --surface: #fffefa;
  --line: #d5ddd5;
  --green: #0d573c;
  --green-hover: #084a33;
  --mint: #dceee1;
  --mint-strong: #a7f3c4;
  --blue: #1886d8;
  --shadow: 0 22px 60px rgba(19, 49, 36, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

a { color: inherit; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: 8px;
  color: white;
  background: var(--green);
}
.skip-link:focus { transform: none; }

.site-header,
.hero,
.downloads,
footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(64, 91, 76, .08);
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}
.brand img,
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
}
.site-header nav { display: flex; gap: 34px; }
.site-header nav a,
footer a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover,
footer a:hover { color: var(--green); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr);
  align-items: center;
  gap: 58px;
  min-height: 560px;
  padding: 64px 0 70px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(46px, 4.5vw, 62px);
  line-height: 1.18;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.hero-copy p {
  max-width: 520px;
  margin: 28px 0 0;
  color: #53675d;
  font-size: 17px;
  line-height: 1.85;
}
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 31px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.hero-action svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.hero-action:hover { text-decoration: underline; }

.app-preview {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  border: 1px solid #ccd8cf;
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-preview::after {
  position: absolute;
  right: -45px;
  bottom: -110px;
  width: 250px;
  height: 180px;
  border: 38px solid rgba(23, 74, 50, .05);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.window-bar {
  display: flex;
  gap: 7px;
  height: 38px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6eae4;
}
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d35b4d; }
.window-bar i:nth-child(2) { background: #e2aa35; }
.window-bar i:nth-child(3) { background: #4ba35e; }
.preview-body { display: grid; grid-template-columns: 150px 1fr; min-height: 362px; }
.preview-sidebar { padding: 20px 13px; background: #eff3ed; }
.preview-brand { display: flex; align-items: center; gap: 8px; margin: 0 8px 28px; font-size: 13px; }
.preview-brand img { width: 27px; height: 27px; border-radius: 50%; }
.preview-nav { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: #647168; font-size: 11px; }
.preview-nav span { width: 14px; color: var(--green); font-size: 15px; }
.preview-nav.is-active { color: var(--ink); background: #dce9df; font-weight: 700; }
.preview-content { min-width: 0; padding: 22px 22px 12px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 14px; }
.preview-head span { width: 145px; padding: 7px 10px; border: 1px solid #dfe4de; border-radius: 7px; color: #9aa29c; font-size: 9px; }
.preview-message {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 2px;
  border-top: 1px solid #e5e9e4;
}
.preview-message i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e6efe8; color: var(--green); font-size: 11px; font-style: normal; font-weight: 700; }
.preview-message b { font-size: 11px; }
.preview-message p { overflow: hidden; margin: 3px 0 0; color: #89938c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preview-message time { align-self: start; color: #98a09a; font: 9px "DM Mono", monospace; }
.preview-message.is-unread::after { position: absolute; top: 27px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #15915f; content: ""; }

.downloads { border-top: 1px solid #bfcac1; border-bottom: 1px solid #bfcac1; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; padding: 32px 0 20px; }
.section-title h2 { margin: 0; color: var(--ink-strong); font-size: 24px; letter-spacing: -.03em; }
.section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.platform-list { display: grid; grid-template-columns: 1fr 1fr; }
.platform {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 22px 20px;
  min-width: 0;
  padding: 31px 38px 34px 0;
  border-top: 1px solid var(--line);
}
.platform + .platform { padding-right: 0; padding-left: 38px; border-left: 1px solid var(--line); }
.platform-icon { display: grid; place-items: center; width: 76px; height: 76px; align-self: start; border-radius: 18px; }
.platform-icon svg { width: 49px; height: 49px; }
.mac-icon { color: var(--green); background: var(--mint); }
.mac-icon svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.windows-icon { background: #e7f2fa; }
.windows-icon svg { fill: var(--blue); }
.platform-copy { min-width: 0; }
.platform-heading { display: flex; align-items: center; gap: 11px; min-height: 31px; }
.platform h3 { margin: 0; color: var(--ink-strong); font-size: 27px; letter-spacing: -.03em; }
.platform p { margin: 3px 0 15px; color: var(--muted); font-size: 13px; }
.recommendation { display: none; padding: 4px 8px; border-radius: 999px; color: #1d6847; background: #d9eddd; font-size: 10px; font-weight: 700; }
.platform.is-recommended .recommendation { display: inline-block; }
.platform label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.platform select {
  width: 100%;
  max-width: 245px;
  padding: 8px 30px 8px 10px;
  border: 1px solid #cdd7cf;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: 12px "Noto Sans SC", sans-serif;
}
.package-note { display: inline-block; margin-top: 13px; color: #76847b; font: 11px "DM Mono", "Noto Sans SC", monospace; }
.download-button {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: 210px;
  padding: 13px 20px;
  border-radius: 10px;
  color: white;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(13, 87, 60, .14);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.download-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.download-button:hover { transform: translateY(-2px); background: var(--green-hover); box-shadow: 0 10px 24px rgba(13, 87, 60, .2); }
.download-button:focus-visible,
.platform select:focus-visible,
.site-header a:focus-visible,
footer a:focus-visible { outline: 3px solid var(--mint-strong); outline-offset: 3px; }
.more-platforms { margin: 0; padding: 21px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }

footer { display: flex; align-items: center; justify-content: space-between; min-height: 112px; }
.footer-brand { font-size: 15px; }
.footer-brand img { width: 29px; height: 29px; }
footer > div { display: flex; gap: 30px; }
footer a { color: #566a60; font-size: 12px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 72px; }
  .hero-copy { max-width: 670px; }
  .app-preview { width: min(650px, 100%); }
  .platform { grid-template-columns: 62px minmax(0, 1fr); padding-right: 24px; }
  .platform + .platform { padding-left: 24px; }
  .platform-icon { width: 62px; height: 62px; }
  .platform-icon svg { width: 40px; height: 40px; }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .downloads,
  footer { width: min(100% - 32px, 560px); }
  .site-header { min-height: 76px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav a:first-child { display: none; }
  .hero { min-height: 0; padding: 54px 0 58px; }
  .hero-copy h1 { font-size: clamp(40px, 12.5vw, 58px); line-height: 1.15; }
  .hero-copy p { font-size: 15px; }
  .app-preview { min-height: 315px; border-radius: 14px; }
  .preview-body { grid-template-columns: 100px 1fr; min-height: 278px; }
  .preview-sidebar { padding: 14px 8px; }
  .preview-brand { margin: 0 4px 19px; }
  .preview-brand b { display: none; }
  .preview-nav { gap: 5px; padding: 8px 6px; font-size: 9px; }
  .preview-content { padding: 16px 12px 8px; }
  .preview-head span { display: none; }
  .preview-message { grid-template-columns: 29px minmax(0, 1fr); padding: 11px 0; }
  .preview-message i { width: 27px; height: 27px; font-size: 9px; }
  .preview-message time { display: none; }
  .preview-message.is-unread::after { top: 21px; }
  .section-title { display: block; padding-bottom: 18px; }
  .section-title p { margin-top: 6px; }
  .platform-list { grid-template-columns: 1fr; }
  .platform,
  .platform + .platform { padding: 26px 0 30px; border-left: 0; }
  .platform + .platform { border-top: 1px solid var(--line); }
  .download-button { width: 100%; }
  footer { min-height: 96px; }
}

@media (max-width: 420px) {
  .platform { grid-template-columns: 54px minmax(0, 1fr); gap: 18px 14px; }
  .platform-icon { width: 54px; height: 54px; border-radius: 14px; }
  .platform-icon svg { width: 35px; height: 35px; }
  .platform-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .platform h3 { font-size: 24px; }
  .download-button { grid-column: 1 / -1; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-button { transition: none; }
}
