:root {
  --bg: #f6faf4;
  --surface: #ffffff;
  --ink: #14241a;
  --muted: #52655a;
  --accent: #1d7a45;
  --accent-soft: #e3f2e7;
  --border: #dbe6dd;
  --shadow: 0 24px 60px -20px rgb(8 30 16 / 35%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1511;
    --surface: #16201a;
    --ink: #eaf2ec;
    --muted: #a3b4a8;
    --accent: #63d18e;
    --accent-soft: #1b2b21;
    --border: #24322a;
    --shadow: 0 24px 60px -20px rgb(0 0 0 / 60%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

main {
  padding-block: clamp(32px, 7vw, 88px) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

.hero-media {
  display: grid;
  place-items: center;
}

.trailer {
  display: block;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 886 / 1920;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .trailer {
    width: min(100%, calc(74vh * 886 / 1920));
  }
}

section {
  margin-top: clamp(44px, 7vw, 88px);
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-weight: 600;
}

.benefits li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.steps {
  display: grid;
  gap: 18px;
  max-width: 68ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 50px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.languages {
  margin: 22px 0 0;
  color: var(--muted);
}

.languages strong {
  color: var(--ink);
}

.download {
  text-align: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
}

.badge img {
  display: block;
  width: auto;
  height: 52px;
}

@media (max-width: 420px) {
  .badge img {
    height: 46px;
  }
}

.free {
  margin: 0;
  color: var(--muted);
}

footer {
  margin-top: clamp(48px, 8vw, 96px);
  padding-block: 28px 40px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal li + li::before {
  content: "·";
  padding-inline: 10px;
}

.legal a {
  color: inherit;
  text-decoration: none;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
