:root {
  --color-primary: #6366f1;
  --color-accent: #f59e0b;
  --color-bg: #0a0e27;
  --color-bg-secondary: #121833;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-border: rgba(148, 163, 184, 0.2);
  --color-card: rgba(18, 24, 51, 0.8);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container-width: 1080px;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(ellipse at top, #1e1b4b 0%, var(--color-bg) 55%);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 160px 60px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 240px 180px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 320px 40px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 420px 140px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 480px 220px;
  opacity: 0.5;
  z-index: 0;
}

main,
.footer {
  position: relative;
  z-index: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 14, 39, 0.92);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__title {
  font-weight: 700;
  font-size: 1rem;
}

.brand__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn:hover {
  color: var(--color-text);
}

.lang-switch__btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

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

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  text-align: center;
}

.hero__logo {
  margin: 0 auto 24px;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.hero__subtitle {
  display: block;
  margin-top: 8px;
  font-size: 0.45em;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 0 0 12px;
  font-size: 1.125rem;
  color: var(--color-text);
}

.hero__desc {
  margin: 0 auto 32px;
  max-width: 520px;
  color: var(--color-text-muted);
}

.section-label {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.download__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.download-btn:hover:not(.is-disabled) {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.download-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.download-btn--app-store,
.download-btn--google-play {
  min-width: 156px;
  padding: 6px 10px;
  justify-content: center;
}

.download-btn--app-store img,
.download-btn--google-play img {
  display: block;
  height: 40px;
  width: auto;
}

.download-btn--apkpure {
  min-width: 160px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.download-btn--apkpure span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-btn--apkpure small {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(160deg, #334155, #0f172a);
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: contain;
  background: var(--color-bg-secondary);
}

.section {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.screenshots__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-card {
  flex: 0 0 min(240px, 72vw);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--color-bg-secondary);
}

.social__inner {
  text-align: center;
}

.social__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 0.875rem;
  transition: border-color 0.2s, transform 0.2s;
}

.social-link:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-empty {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer {
  margin-top: 24px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__copy {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer__link {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__content {
    text-align: left;
  }

  .hero__logo {
    margin-inline: 0;
  }

  .download__buttons {
    justify-content: flex-start;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .phone-frame {
    width: 320px;
  }
}
