:root {
  --bg: #07080d;
  --bg-elevated: #0e1018;
  --text: #f4f5f7;
  --muted: rgba(244, 245, 247, 0.58);
  --brand: #3457e3;
  --line: rgba(255, 255, 255, 0.06);
  --font-fa: "Vazirmatn", system-ui, sans-serif;
  --font-en: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black 20%, transparent 70%);
  opacity: 0.5;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float-orb 18s var(--ease-out) infinite;
}

.orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: var(--brand);
  top: -12%;
  right: -8%;
  animation-delay: 0s;
}

.orb-b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  background: #1a2a8a;
  bottom: -18%;
  left: -10%;
  animation-delay: -6s;
}

.orb-c {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  background: #4d6ef0;
  top: 42%;
  left: 32%;
  opacity: 0.25;
  animation-delay: -12s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-4%, 2%) scale(0.96);
  }
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-fa);
  animation: fade-up 0.9s var(--ease-out) both;
}

.badge--en {
  font-family: var(--font-en);
  animation-delay: 0.06s;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2rem) 2rem;
  text-align: center;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  overflow: visible;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  animation: fade-up 1s var(--ease-out) 0.12s both;
}

.logo-motion {
  position: relative;
  display: inline-block;
  overflow: visible;
  padding: clamp(10px, 2.5vw, 18px) clamp(12px, 3vw, 22px);
}

.brand-stack {
  position: relative;
  display: inline-block;
  line-height: 0;
  isolation: isolate;
}

.brand {
  position: relative;
  z-index: 0;
  display: block;
  width: min(280px, 78vw);
  height: auto;
  overflow: visible;
  color: #e8eaef;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.38));
  transform-origin: 28% 28%;
}

.brand__node {
  transform-origin: 48px 24px;
  animation: headlight-lens 4.5s ease-in-out infinite;
}

.brand__swoosh {
  transform-origin: 6% 24%;
  animation: headlight-beam 4.5s ease-in-out infinite;
}

@keyframes headlight-lens {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(52, 87, 227, 0.22));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 14px rgba(52, 87, 227, 0.32));
  }
}

@keyframes headlight-beam {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 1;
    filter: drop-shadow(-2px 4px 10px rgba(52, 87, 227, 0.18));
  }
  50% {
    transform: translate(0.5px, -0.5px);
    filter: drop-shadow(-3px 6px 14px rgba(52, 87, 227, 0.26));
  }
}

.shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    101deg,
    transparent 44%,
    rgba(255, 255, 255, 0.12) 49.2%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 54.5%
  );
  transform: translateX(-65%) rotate(-3deg);
  animation: road-glare 8s var(--ease-out) infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0;
}

@keyframes road-glare {
  0%,
  70% {
    opacity: 0;
    transform: translateX(-65%) rotate(-3deg);
  }
  73% {
    opacity: 0.85;
  }
  80% {
    opacity: 0;
    transform: translateX(65%) rotate(-3deg);
  }
  83%,
  100% {
    opacity: 0;
    transform: translateX(65%) rotate(-3deg);
  }
}

.title {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.15;
  animation: fade-up 1s var(--ease-out) 0.2s both;
}

.title__fa {
  display: block;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title__en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  margin: 0 auto 0.65rem;
  max-width: 34em;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.75;
  color: var(--muted);
  animation: fade-up 1s var(--ease-out) 0.28s both;
}

.lead--en {
  font-family: var(--font-en);
  font-size: clamp(0.85rem, 2.1vw, 0.95rem);
  line-height: 1.65;
  animation-delay: 0.34s;
}

.notice {
  margin: clamp(1.35rem, 3.5vw, 2rem) auto clamp(1.5rem, 4vw, 2.5rem);
  max-width: 32rem;
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  text-align: center;
  animation: fade-up 1s var(--ease-out) 0.38s both;
}

.notice__fa {
  margin: 0 0 0.65rem;
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  line-height: 1.7;
  color: rgba(244, 245, 247, 0.78);
}

.notice__en {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.65;
  color: rgba(244, 245, 247, 0.55);
}

.partners {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--line);
  text-align: center;
  animation: fade-up 1s var(--ease-out) 0.44s both;
}

.partners__title {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.38);
}

.partners__sub {
  margin: 0 0 1rem;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.28);
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners__item {
  margin: 0;
}

.partners__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  min-height: clamp(3.25rem, 9vw, 4.75rem);
  padding: 0.55rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.partners__logo img {
  display: block;
  max-height: clamp(2.75rem, 8vw, 4rem);
  width: auto;
  max-width: min(12rem, 46vw);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  mix-blend-mode: luminosity;
  opacity: 0.88;
  filter: contrast(1.06);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.partners__logo:hover img,
.partners__logo:focus-within img {
  mix-blend-mode: normal;
  opacity: 1;
  filter: none;
}

@supports not (mix-blend-mode: luminosity) {
  .partners__logo img {
    mix-blend-mode: normal;
    filter: saturate(0.22) brightness(0.72) contrast(1.08);
    opacity: 0.75;
  }

  .partners__logo:hover img,
  .partners__logo:focus-within img {
    filter: none;
    opacity: 1;
  }
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.foot-links a {
  color: rgba(244, 245, 247, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-links a:hover {
  color: rgba(244, 245, 247, 0.78);
}

.foot-links__sep {
  color: rgba(244, 245, 247, 0.2);
  user-select: none;
}

.foot-links a[dir="ltr"] {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.track__inner {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.22);
  animation: marquee 28s linear infinite;
}

.track__inner span:nth-child(odd) {
  font-family: var(--font-fa);
  letter-spacing: 0.12em;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.legal-page .orb-c {
  display: none;
}

.legal-top {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

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

.legal-back span[dir="ltr"] {
  font-family: var(--font-en);
  font-size: 0.82rem;
  opacity: 0.85;
}

.legal-doc {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) 3rem;
}

.legal-doc__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.legal-doc__meta {
  margin: 0 0 1.75rem;
  font-size: 0.8rem;
  color: rgba(244, 245, 247, 0.45);
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(244, 245, 247, 0.92);
}

.legal-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
}

.legal-section--muted p {
  color: rgba(244, 245, 247, 0.48);
  font-size: 0.85rem;
}

.legal-section--en {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-section--en h2 {
  font-family: var(--font-en);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.legal-section--en p {
  font-family: var(--font-en);
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.7;
}

.legal-foot {
  position: relative;
  z-index: 1;
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.legal-foot__copy {
  margin: 0 0 0.35rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(244, 245, 247, 0.35);
}

.legal-foot a {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: rgba(244, 245, 247, 0.45);
  text-decoration: none;
}

.legal-foot a:hover {
  color: rgba(244, 245, 247, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .brand__node,
  .brand__swoosh,
  .shine,
  .track__inner {
    animation: none;
  }

  .brand__node,
  .brand__swoosh {
    transform: none;
    filter: none;
  }

  .shine {
    display: none;
  }

  .badge,
  .logo-wrap,
  .title,
  .lead,
  .lead--en,
  .notice,
  .partners {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .legal-page .orb {
    animation: none;
  }
}
