@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #eaeaea;
  --green: #afff41;
  --dark-line: rgba(234, 234, 234, 0.2);
  --light-line: rgba(0, 0, 0, 0.18);
  --page: min(1380px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--green);
  color: var(--black);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--page);
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-line);
}
.brand img, footer img { display: block; filter: invert(1); }
.brand img { width: 118px; }
.header-version { font-size: 13px; letter-spacing: .02em; }

.downloads {
  padding: 64px max(32px, calc((100vw - min(1380px, calc(100vw - 64px))) / 2)) 96px;
  background: var(--white);
  color: var(--black);
}
.section-heading { padding-bottom: 34px; border-bottom: 1px solid var(--light-line); }
.section-heading h1, .privacy h2 {
  margin-bottom: 0;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
}
.section-intro { margin: 18px 0 0; font-size: 18px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; }
.download-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light-line);
  border-radius: 10px;
  background: #f1f1f1;
}
.card-label { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.download-card h2 { margin: auto 0 5px; font-size: clamp(30px, 3vw, 43px); font-weight: 400; line-height: 1; letter-spacing: -.05em; }
.download-card p { margin-bottom: 26px; }
.download-card a { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 10px; background: var(--green); color: var(--black); font-weight: 500; text-decoration: none; }
.download-card a:hover { background: var(--black); color: var(--white); }
.download-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mac-support {
  margin-top: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
}
.support-label { margin-bottom: 14px; color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.mac-support h2 { max-width: 850px; margin-bottom: 14px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; }
.mac-support div > p:last-child { max-width: 850px; margin-bottom: 0; font-size: 17px; }
.guide-button { min-width: 210px; padding: 15px 18px; border-radius: 10px; background: var(--green); color: var(--black); font-weight: 500; text-align: center; text-decoration: none; }
.guide-button:hover { background: var(--white); }

.privacy {
  padding: 70px max(32px, calc((100vw - min(1380px, calc(100vw - 64px))) / 2));
  display: grid;
  grid-template-columns: 100px 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--green);
  color: var(--black);
}
.privacy img { width: 72px; }
.privacy p { margin: 0; max-width: 460px; font-size: 18px; }

footer {
  width: var(--page);
  min-height: 145px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 13px;
}
footer img { width: 112px; }
footer p { margin: 0; text-align: center; }
footer a { justify-self: end; }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 32px); }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 240px; }
  .mac-support { grid-template-columns: 1fr; gap: 28px; }
  .guide-button { justify-self: start; }
  .privacy { grid-template-columns: 90px 1fr; }
  .privacy p { grid-column: 2; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 24px); }
  .site-header { height: 76px; }
  .brand img { width: 96px; }
  .header-version { font-size: 12px; }
  .downloads { padding: 44px 20px 76px; }
  .section-heading h1, .privacy h2 { font-size: 46px; }
  .mac-support { padding: 24px; }
  .privacy { padding: 58px 20px; grid-template-columns: 1fr; }
  .privacy p { grid-column: 1; }
  footer { padding: 42px 0; grid-template-columns: 1fr; gap: 28px; }
  footer p { text-align: left; }
  footer a { justify-self: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .download-card a, .guide-button { transition: 160ms ease; }
}
