:root {
  --purple-4: #58327d;
  --purple-6: #efe7f7;
  --blue-3: #2a378f;
  --blue-12: #f2fdff;
  --white: #ffffff;
  --text: #241f3f;
  --muted: #6c6684;
  --stroke: rgba(42, 55, 143, 0.08);
  --button-shadow: 0 6px 18px rgba(42, 55, 143, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "League Spartan", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-6) 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 20px 40px;
}

.hero-shell {
  width: min(100%, 540px);
  display: grid;
  justify-items: center;
  gap: 0;
}

.brand-logo {
  width: min(196px, 58vw);
  height: auto;
  margin-bottom: 33px;
}

.language-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.language-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-4);
  font-family: "League Spartan", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 120ms ease, transform 120ms ease;
}

.language-button img {
  width: 45px;
  height: 45px;
  margin-bottom: 6px;
  object-fit: contain;
}

.language-button[data-lang="en"] img {
  width: 50px;
  height: 50px;
  margin-top: -2.5px;
  margin-bottom: 3.5px;
}

.language-button.is-active {
  opacity: 1;
}

.language-button:hover {
  transform: translateY(-1px);
}

.hero-copy,
.hero-actions {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.hero-copy {
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.02;
  color: var(--purple-4);
  font-weight: 400;
}

.actions,
.all-options {
  display: grid;
  gap: 12px;
}

.download-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--blue-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  background: var(--white);
  border: 1px solid var(--stroke);
  box-shadow: var(--button-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  text-align: center;
}

.download-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(42, 55, 143, 0.12);
}

.link-copy {
  display: inline;
}

.link-copy span:first-child {
  font-family: "League Spartan", "Avenir Next", "Segoe UI", sans-serif;
}

.link-copy span:last-child {
  display: none;
}

.text-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-4);
  font-family: "League Spartan", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.all-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(88, 50, 125, 0.08);
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .page {
    padding-left: 30px;
    padding-right: 30px;
  }

  .brand-logo {
    margin-bottom: 28px;
  }

  .language-container {
    gap: 10px;
  }
}
