
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #081426;
  --bg-light: #0d1d32;
  --panel: rgba(18, 39, 64, 0.72);
  --panel-border: rgba(133, 179, 220, 0.15);
  --blue: #55b7ff;
  --blue-light: #91d1ff;
  --text: #f3f7fc;
  --muted: #9aacc2;
  --header-height: 82px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.background-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.17;
}

.glow-one {
  width: 420px;
  height: 420px;
  background: #1264a7;
  top: 5%;
  right: -180px;
}

.glow-two {
  width: 380px;
  height: 380px;
  background: #174b85;
  bottom: -180px;
  left: -150px;
}

/* هدر */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  background: rgba(8, 20, 38, 0.82);
  border-bottom: 1px solid rgba(148, 183, 219, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(55, 151, 226, 0.13);
  border: 1px solid rgba(85, 183, 255, 0.2);
  border-radius: 12px;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 9px 0;
  font-size: 13px;
  color: #aab9ca;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  width: 100%;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(85, 183, 255, 0.35);
  border-radius: 10px;
  color: var(--blue-light);
  font-size: 13px;
  transition: 0.3s ease;
}

.login-button:hover {
  background: rgba(85, 183, 255, 0.12);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.login-button svg {
  width: 17px;
  height: 17px;
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

/* ساختار صفحات */

.page-container {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
}

.page-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 600px;
  padding: calc(var(--header-height) + 35px) 7% 75px;
  display: flex;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(55px) scale(0.985);
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.65s;
  pointer-events: none;
  overflow: hidden;
}

.page-section.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.page-section.leaving-up {
  opacity: 0;
  transform: translateY(-55px) scale(0.985);
}

.section-inner {
  width: 100%;
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: clamp(35px, 6vw, 95px);
}

/* نوشته‌ها */

.hero-content,
.about-content,
.download-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-light);
  background: rgba(85, 183, 255, 0.08);
  border: 1px solid rgba(85, 183, 255, 0.16);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 12px;
  margin-bottom: 25px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.55;
}

.hero-content h1 {
  font-size: clamp(36px, 4.5vw, 66px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #a4dcff 0%, #55b7ff 45%, #398ce0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description,
.about-description,
.download-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 2.2;
  max-width: 520px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  min-height: 49px;
  padding: 0 23px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s ease;
}

.primary-button {
  background: linear-gradient(110deg, #258bd5, #1765aa);
  color: #fff;
  border: 1px solid rgba(135, 205, 255, 0.25);
  box-shadow: 0 10px 30px rgba(22, 111, 181, 0.2);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(22, 111, 181, 0.34);
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.secondary-button {
  color: #c3d4e8;
  border: 1px solid rgba(164, 194, 225, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.secondary-button:hover {
  border-color: rgba(85, 183, 255, 0.55);
  color: white;
  background: rgba(85, 183, 255, 0.08);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #91a5bd;
  font-size: 12px;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(66, 192, 139, 0.15);
  color: #5bd4a2;
  font-size: 12px;
}

/* قاب تصاویر */

.hero-visual,
.about-visual,
.download-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.visual-glow {
  position: absolute;
  inset: 15%;
  background: #1473b7;
  filter: blur(100px);
  opacity: 0.22;
}

.image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(28, 62, 96, 0.78), rgba(11, 27, 47, 0.95));
  border: 1px dashed rgba(115, 181, 232, 0.45);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

.image-placeholder::before,
.image-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(106, 184, 245, 0.09);
  pointer-events: none;
}

.image-placeholder::before {
  width: 320px;
  height: 320px;
}

.image-placeholder::after {
  width: 450px;
  height: 450px;
}

.hero-image {
  aspect-ratio: 1.05 / 0.85;
}

.placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 25px;
  color: #b6d5f0;
}

.placeholder-content strong {
  font-size: 15px;
  color: #e3f2ff;
}

.placeholder-content > span:last-child {
  font-size: 11px;
  color: #819eb9;
}

.placeholder-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--blue);
  background: rgba(85, 183, 255, 0.11);
  border: 1px solid rgba(85, 183, 255, 0.22);
}

.placeholder-icon svg {
  width: 27px;
  height: 27px;
}

.floating-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(145, 190, 228, 0.17);
  border-radius: 12px;
  background: rgba(14, 33, 55, 0.92);
  backdrop-filter: blur(12px);
  color: #d3e6f8;
  font-size: 11px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.floating-label-top {
  top: 13%;
  right: -25px;
}

.floating-label-bottom {
  bottom: 12%;
  left: -25px;
}

.floating-label-icon {
  color: var(--blue);
  font-size: 21px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cd69c;
  box-shadow: 0 0 12px rgba(76, 214, 156, 0.7);
}

/* بخش دوم */

.about-inner {
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(35px, 5vw, 75px);
}

.about-content h2,
.download-content h2 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.about-description {
  margin-top: 12px;
  font-size: 13px;
}

.about-image {
  aspect-ratio: 0.95 / 1;
  min-height: 300px;
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  color: #8099b4;
  font-size: 11px;
}

.caption-line {
  width: 25px;
  height: 2px;
  background: var(--blue);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 23px;
}

.feature-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: rgba(27, 58, 91, 0.9);
  border-color: rgba(85, 183, 255, 0.35);
}

.feature-card-wide {
  grid-column: 1 / -1;
}

.feature-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(85, 183, 255, 0.1);
  border-radius: 11px;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  font-size: 12px;
  font-weight: 700;
  color: #eaf5ff;
}

.feature-card p {
  margin-top: 5px;
  color: #91a6bd;
  font-size: 10px;
  line-height: 1.8;
}

/* بخش سوم */

.download-inner {
  grid-template-columns: 1fr 0.9fr;
}

.download-content {
  max-width: 540px;
}

.download-description {
  max-width: 460px;
}

.download-button {
  margin-top: 28px;
  min-width: 185px;
}

.download-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 25px;
  color: #8299b2;
  font-size: 11px;
}

.download-meta strong {
  color: #c9e6ff;
  font-weight: 600;
}

.meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4b9bd5;
}

.download-support {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #8199b3;
  font-size: 11px;
}

.support-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 183, 255, 0.3);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 700;
}

.download-image {
  aspect-ratio: 0.95 / 1;
  max-width: 430px;
}

.download-orbit {
  position: absolute;
  border: 1px solid rgba(85, 183, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 115%;
  aspect-ratio: 1;
  top: -7%;
  right: -7%;
}

.orbit-two {
  width: 135%;
  aspect-ratio: 1;
  top: -17%;
  right: -17%;
  border-style: dashed;
  opacity: 0.6;
}

/* فوتر */

.site-footer {
  position: absolute;
  bottom: 17px;
  right: 7%;
  left: 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid rgba(145, 177, 210, 0.1);
  color: #748ba5;
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d6e8f9;
  font-size: 13px;
}

.footer-brand-icon {
  color: var(--blue);
  font-size: 22px;
}

/* شماره صفحه و راهنمای اسکرول */

.section-counter {
  position: absolute;
  left: 7%;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7892ad;
  font-size: 10px;
  direction: ltr;
}

.section-counter span:first-child {
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
}

.counter-line {
  width: 38px;
  height: 1px;
  background: rgba(129, 175, 215, 0.35);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #748ca7;
  font-size: 10px;
  white-space: nowrap;
  animation: hintFloat 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

@keyframes hintFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* انیمیشن محتوای صفحات */

.page-section .hero-content,
.page-section .hero-visual,
.page-section .about-content,
.page-section .about-visual,
.page-section .download-content,
.page-section .download-visual {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.65s ease 0.15s, transform 0.75s ease 0.15s;
}

.page-section.active .hero-content,
.page-section.active .hero-visual,
.page-section.active .about-content,
.page-section.active .about-visual,
.page-section.active .download-content,
.page-section.active .download-visual {
  opacity: 1;
  transform: translateY(0);
}

/* تبلت */

@media (max-width: 1050px) {
  .site-header {
    padding: 0 4%;
  }

  .page-section {
    padding-right: 5%;
    padding-left: 5%;
  }

  .section-inner {
    gap: 35px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .about-content h2,
  .download-content h2 {
    font-size: 35px;
  }

  .features-grid {
    gap: 8px;
  }

  .feature-card {
    padding: 10px;
  }

  .feature-card p {
    font-size: 9px;
  }

  .floating-label-top {
    right: -10px;
  }

  .floating-label-bottom {
    left: -10px;
  }
}

/* موبایل */

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    overflow: hidden;
  }

  .site-header {
    padding: 0 5%;
  }

  .brand-icon {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 19px;
  }

  .main-nav,
  .login-button {
    display: none;
  }

  .mobile-menu-button {
    width: 39px;
    height: 39px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(85, 183, 255, 0.1);
    border: 1px solid rgba(85, 183, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
  }

  .mobile-menu-button span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 5px;
    background: #c8e7ff;
  }

  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 999;
    padding: 12px 5% 18px;
    flex-direction: column;
    gap: 4px;
    background: rgba(9, 24, 43, 0.97);
    border-bottom: 1px solid rgba(133, 179, 220, 0.13);
    backdrop-filter: blur(15px);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    padding: 12px 10px;
    color: #c5d6e8;
    font-size: 13px;
    border-radius: 8px;
  }

  .mobile-menu a:hover {
    background: rgba(85, 183, 255, 0.1);
  }

  .page-section {
    min-height: 0;
    padding: calc(var(--header-height) + 24px) 6% 80px;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
  }

  .section-inner,
  .about-inner,
  .download-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    max-width: 440px;
  }

  .hero-content h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.5;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 10px;
  }

  .hero-description,
  .about-description,
  .download-description {
    font-size: 12px;
    line-height: 2;
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 9px;
  }

  .primary-button,
  .secondary-button {
    min-height: 44px;
    padding: 0 15px;
    font-size: 11px;
  }

  .hero-note {
    margin-top: 15px;
    font-size: 10px;
  }

  .hero-image {
    aspect-ratio: 1.5 / 0.85;
  }

  .placeholder-content {
    gap: 8px;
    padding: 15px;
  }

  .placeholder-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .placeholder-icon svg {
    width: 22px;
    height: 22px;
  }

  .placeholder-content strong {
    font-size: 12px;
  }

  .placeholder-content > span:last-child {
    font-size: 9px;
  }

  .floating-label {
    padding: 8px 10px;
    font-size: 9px;
  }

  .floating-label-top {
    top: 8%;
    right: -5px;
  }

  .floating-label-bottom {
    bottom: 8%;
    left: -5px;
  }

  .about-inner {
    gap: 17px;
  }

  .about-visual {
    order: 2;
    max-width: 400px;
  }

  .about-content {
    order: 1;
  }

  .about-content h2,
  .download-content h2 {
    font-size: clamp(27px, 7vw, 36px);
    line-height: 1.5;
  }

  .about-image {
    aspect-ratio: 1.6 / 0.8;
    min-height: 0;
  }

  .visual-caption {
    margin-top: 7px;
  }

  .features-grid {
    gap: 7px;
    margin-top: 15px;
  }

  .feature-card {
    min-height: 69px;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .feature-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 8px;
  }

  .feature-icon svg {
    width: 17px;
    height: 17px;
  }

  .feature-card h3 {
    font-size: 10px;
  }

  .feature-card p {
    font-size: 8px;
    line-height: 1.6;
  }

  .download-inner {
    gap: 20px;
  }

  .download-content {
    order: 1;
  }

  .download-visual {
    order: 2;
    max-width: 350px;
  }

  .download-image {
    aspect-ratio: 1.5 / 0.8;
  }

  .download-button {
    margin-top: 19px;
  }

  .download-meta {
    margin-top: 16px;
  }

  .download-support {
    margin-top: 15px;
    line-height: 1.8;
  }

  .site-footer {
    right: 6%;
    left: 6%;
    bottom: 10px;
    flex-wrap: wrap;
    gap: 5px 12px;
    padding-top: 8px;
    font-size: 8px;
  }

  .footer-brand {
    font-size: 11px;
  }

  .section-counter {
    left: 6%;
    bottom: 17px;
    font-size: 9px;
  }

  .section-counter span:first-child {
    font-size: 11px;
  }

  .scroll-hint {
    bottom: 15px;
    font-size: 8px;
  }

  .scroll-hint svg {
    width: 14px;
    height: 14px;
  }
}

/* موبایل‌های کوچک */

@media (max-width: 380px) {
  .page-section {
    padding-right: 5%;
    padding-left: 5%;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    min-height: 74px;
  }

  .feature-card-wide {
    grid-column: 1 / -1;
  }

  .section-counter {
    bottom: 12px;
  }
}

/* کاهش حرکت برای افرادی که انیمیشن را غیرفعال کرده‌اند */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}



/* =========================================
   سیستم نهایی حرکت صفحات جاملکی
========================================= */

/* صفحه در حال ورود باید همیشه روی صفحه خروجی باشد */
.page-section.entering-from-above,
.page-section.entering-from-below {
    z-index: 3 !important;
    visibility: visible;
}

/* صفحه خروجی زیر صفحه ورودی قرار می‌گیرد */
.page-section.leaving-up,
.page-section.leaving-down {
    z-index: 2 !important;
    visibility: visible;
}

/* صفحه جدید از پایین وارد می‌شود */
.page-section.entering-from-below {
    transform: translateY(55px) scale(0.985);
}

/* صفحه جدید از بالا وارد می‌شود */
.page-section.entering-from-above {
    transform: translateY(-55px) scale(0.985);
}

/* به محض فعال‌شدن، صفحه به موقعیت اصلی حرکت می‌کند */
.page-section.active.entering-from-below,
.page-section.active.entering-from-above {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* خروج به سمت بالا */
.page-section.leaving-up {
    opacity: 0;
    transform: translateY(-55px) scale(0.985);
}

/* خروج به سمت پایین */
.page-section.leaving-down {
    opacity: 0;
    transform: translateY(55px) scale(0.985);
}

/* هماهنگ شدن ورود محتوای داخلی با خود صفحه */
.page-section .hero-content,
.page-section .hero-visual,
.page-section .about-content,
.page-section .about-visual,
.page-section .download-content,
.page-section .download-visual {
    transition:
        opacity 0.65s ease,
        transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* اسکرول فقط برای جابه‌جایی بین سه صفحه */
html,
body {
    overflow: hidden;
    overscroll-behavior: none;
}

.page-container {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

/* موبایل */
@media (max-width: 760px) {

    .page-section {
        height: 100%;
        min-height: 0;
        overflow: hidden !important;
        overscroll-behavior: none;
        touch-action: pan-x;
    }

    .page-container {
        height: 100vh;
        height: 100svh;
        overflow: hidden;
        touch-action: pan-x;
    }
}


.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}