:root {
  color-scheme: dark;
  --background: #090b10;
  --surface: #121621;
  --surface-soft: #1a2030;
  --text: #f7f9ff;
  --text-soft: #b7c0d4;
  --accent: #52a8ff;
  --accent-strong: #9c68ff;
  --border: rgba(255, 255, 255, 0.12);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0, rgba(82, 168, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 85% 20%, rgba(156, 104, 255, 0.16), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:hover {
  color: #b695ff;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.language-picker select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: 64px 0 96px;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 11vw, 7rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.actions,
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.store-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 168, 255, 0.65);
  background: var(--surface-soft);
  color: var(--text);
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #147de1, #7d4be2);
}

.button-primary:hover {
  background: linear-gradient(135deg, #278fee, #8e5cf0);
}

.features {
  padding: 88px 0;
  border-block: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.64);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.card,
.policy-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(26, 32, 48, 0.86), rgba(13, 16, 24, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.card p,
.policy-card p,
.policy-card li {
  color: var(--text-soft);
}

.download {
  padding: 96px 0;
  text-align: center;
}

.download .store-buttons {
  justify-content: center;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 12px;
}

.social-link {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: 0.25s;
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 140, 255, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.social-link-facebook:hover,
.social-link-facebook:focus {
  background: #1877f2;
}

.social-link-facebook {
  background: #1877f2;
}

.social-link-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af 72%, #515bd4);
}

.social-link-instagram:hover,
.social-link-instagram:focus {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af 72%, #515bd4);
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.redirect-card {
  width: min(calc(100% - 40px), 660px);
  padding: 48px 28px;
  text-align: center;
}

.redirect-card h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
}

.redirect-note {
  margin-top: 26px;
  color: var(--text-soft);
}

.policy-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(14px);
}

.policy-header .container {
  display: flex;
  min-height: 72px;
  align-items: center;
}

.policy-hero {
  padding: 80px 0 48px;
  text-align: center;
}

.policy-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
}

.policy-hero p {
  color: var(--text-soft);
}

.policy-section {
  padding: 0 0 88px;
}

.policy-card {
  max-width: 900px;
  margin-inline: auto;
}

.policy-card h2 {
  margin-top: 42px;
  font-size: 1.45rem;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
}

.error-page main {
  width: min(calc(100% - 40px), 620px);
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(5rem, 25vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .store-button {
    transition: none;
  }
}
