@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #07070b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-2: #a7adbb;
  --text-3: #6b7280;
  --teal: #10c0a8;
  --teal-2: #45dcc4;
  --teal-deep: #067e70;
  --android: #3ddc84;
  --windows: #3aa0ff;
  --telegram: #2aabee;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}

.aurora__blob--1 {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(16, 192, 168, 0.75), transparent 65%);
  animation: drift-1 18s var(--ease) infinite alternate;
}

.aurora__blob--2 {
  width: 520px;
  height: 520px;
  top: 38%;
  left: -220px;
  background: radial-gradient(circle, rgba(58, 160, 255, 0.45), transparent 65%);
  animation: drift-2 22s var(--ease) infinite alternate;
}

.aurora__blob--3 {
  width: 480px;
  height: 480px;
  bottom: -220px;
  right: 18%;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.35), transparent 65%);
  animation: drift-3 26s var(--ease) infinite alternate;
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}

@keyframes drift-1 {
  to { transform: translate(-120px, 90px) scale(1.12); }
}

@keyframes drift-2 {
  to { transform: translate(140px, -80px) scale(0.92); }
}

@keyframes drift-3 {
  to { transform: translate(-90px, -120px) scale(1.15); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(7, 7, 11, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.topbar.is-scrolled {
  border-color: var(--border);
  background: rgba(7, 7, 11, 0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand__name {
  font-weight: 800;
  font-size: 1.2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.arch__option:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 3px;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover::after {
  transform: translateX(-120%);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.92rem;
  border-radius: 12px;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: 16px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal-2), var(--teal) 45%, var(--teal-deep));
  box-shadow: 0 6px 18px -10px rgba(16, 192, 168, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(16, 192, 168, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--glass,
.btn--ghost {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover,
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.btn--ghost .icon,
.btn--glass .icon {
  color: var(--teal-2);
}

.btn--android {
  background: linear-gradient(135deg, #5cf0a0, var(--android) 50%, #1fa864);
  color: #04200f;
  box-shadow: 0 6px 16px -10px rgba(61, 220, 132, 0.45);
}

.btn--windows {
  background: linear-gradient(135deg, #6fc1ff, var(--windows) 50%, #0063c7);
  box-shadow: 0 6px 16px -10px rgba(58, 160, 255, 0.45);
}

.btn--play {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn--play:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--play.is-soon {
  cursor: default;
  color: var(--text-2);
}

.btn--play.is-soon::after {
  display: none;
}

.soon {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1400;
  background: linear-gradient(135deg, #ffe066, #f5b700);
}

.btn--android:hover,
.btn--windows:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 90px;
  position: relative;
}

.hero__mark {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite;
}

.hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(69, 220, 196, 0.22);
  animation: ping 3.6s var(--ease) infinite;
}

.hero__ring--2 {
  animation-delay: 1.2s;
}

.hero__ring--3 {
  animation-delay: 2.4s;
}

@keyframes ping {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__title {
  margin: 0;
  font-size: clamp(3.4rem, 13vw, 7.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, var(--teal-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 3.6vw, 1.7rem);
  font-weight: 700;
  color: var(--teal-2);
}

.hero__lead {
  margin: 6px 0 0;
  font-size: clamp(0.98rem, 2.6vw, 1.1rem);
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.download {
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
}

.download {
  padding: 40px 0 90px;
  scroll-margin-top: 70px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  font-weight: 800;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--text-2);
}

.detected {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 16px !important;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 192, 168, 0.1);
  border: 1px solid rgba(69, 220, 196, 0.25);
  color: var(--teal-2) !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.detected[hidden] {
  display: none !important;
}

.detected__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 0 rgba(69, 220, 196, 0.6);
  animation: beacon 2s infinite;
}

@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(69, 220, 196, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(69, 220, 196, 0); }
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.platform {
  --accent: var(--teal);
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 30%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
  overflow: hidden;
}

.platform--android {
  --accent: var(--android);
}

.platform--windows {
  --accent: var(--windows);
}

.platform:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.7);
}

.platform__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.platform:hover .platform__glow {
  opacity: 1;
}

.platform.is-recommended {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.platform__badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #07070b;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.platform.is-recommended .platform__badge {
  opacity: 1;
  transform: none;
}

.platform__icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateZ(40px);
  transition: transform 0.45s var(--ease);
}

.platform:hover .platform__icon {
  transform: translateZ(60px) scale(1.06);
}

.platform__icon svg {
  width: 52px;
  height: 52px;
  fill: var(--accent);
}

.platform__name {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.platform__note {
  margin: 2px 0 0;
  color: var(--text-2);
}

.platform__meta {
  margin: 14px 0 18px;
  font-size: 0.88rem;
  color: var(--text-3);
}

.platform__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.platform__actions {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.platform .btn--windows {
  margin-top: auto;
}

.platform--android .platform__meta {
  margin-bottom: 22px;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.choice__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
}

.choice__desc {
  margin: 0;
  min-height: 1.6em;
  font-size: 0.8rem;
  color: var(--text-2);
}

.arch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.arch__option {
  padding: 7px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.arch__option:hover {
  color: #fff;
}

.arch__option.is-active {
  background: linear-gradient(135deg, #6fc1ff, var(--windows));
  color: #fff;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 16px 34px;
  color: var(--text-3);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.footer img {
  border-radius: 7px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }
.platforms .reveal:nth-child(2) { transition-delay: 0.12s; }

.platform.reveal.is-visible {
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}

@media (max-width: 760px) {
  .platforms {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .platform {
    padding: 34px 20px 22px;
  }

  .hero {
    min-height: calc(100svh - 60px);
    padding-bottom: 80px;
  }

  .hero__actions {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .platform.is-recommended {
    order: -1;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 1.05rem;
  }

  .btn--sm {
    padding: 7px 12px;
  }

  .arch__option {
    padding: 7px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
