:root {
  --bg: #000;
  --text: #cfcfcf;
  --muted: #9a9a9a;
  --heading: #e8e8e8;
  --line: #1c1c1c;
  --btn: #1c1c1c;
  --btn-hover-border: #05cab6;
  --accent: #05cab6;
  --max: 640px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: Overpass, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

html[lang="ug"] body,
html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "UKIJ Tuz", "Segoe UI", Tahoma, Overpass,
    sans-serif;
  line-height: 1.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand,
.product h2 {
  direction: ltr;
  unicode-bidi: isolate;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0a0a;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #1c1c1c;
  color: #fff;
}

.hero,
.product,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.hero {
  padding: 88px 0 48px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  color: var(--heading);
}

.hero .tagline {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--heading);
}

.hero .intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.product {
  padding: 72px 0;
}

.product h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  color: var(--heading);
}

.product .tagline {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--heading);
}

.icon-wrap {
  width: 144px;
  height: 144px;
  margin: 28px auto 0;
  border-radius: 40px;
  overflow: hidden;
}

.icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.product .desc {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: ltr;
  margin-top: 28px;
  padding: 14px 42px;
  border: 2px solid var(--btn);
  border-radius: 4px;
  background: var(--btn);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

.download svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.download:hover {
  border-color: var(--btn-hover-border);
}

.site-footer {
  padding: 48px 0 72px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer .icp {
  margin-top: 8px;
}

.site-footer .icp a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .site-header {
    padding: 12px 16px;
  }

  .lang-switch button {
    padding: 6px 9px;
    font-size: 12px;
  }

  .hero,
  .product,
  .site-footer {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero {
    padding: 56px 0 24px;
  }

  .product {
    padding: 48px 0;
  }

  .download {
    padding: 11px 26px;
  }
}
