:root {
  color-scheme: dark;
  --bg: #061728;
  --bg-soft: #0b2035;
  --surface: rgba(14, 36, 58, 0.82);
  --surface-strong: #102b45;
  --text: #f7fbff;
  --muted: #a7b8c7;
  --gold: #ffd35a;
  --gold-strong: #ffbf1f;
  --blue: #2c7dd2;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-fa: "Nassim", "Vazirmatn", "Tahoma", sans-serif;
  --font-en: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Nassim";
  src: url("assets/webfonts/nassim.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 90, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(44, 125, 210, 0.24), transparent 30rem),
    linear-gradient(135deg, #041220 0%, var(--bg) 48%, #071f34 100%);
  color: var(--text);
  font-family: var(--font-fa);
}

body[data-lang="en"] {
  font-family: var(--font-en);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 42px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 23, 40, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.brand,
.site-nav,
.language-toggle,
.hero-actions,
.trust-row,
.download-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-mark,
.preview-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--gold), #fff1a8);
  color: #082552;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 211, 90, 0.28);
}

.brand-mark {
  overflow: hidden;
  background: #082552;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  flex: 0 0 max-content;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.language-toggle {
  gap: 9px;
  border: 1px solid rgba(255, 211, 90, 0.42);
  border-radius: 999px;
  background: rgba(255, 211, 90, 0.12);
  color: var(--gold);
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 56px;
  padding: 28px 0 78px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.03em;
}

body[data-lang="en"] .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body:not([data-lang="en"]) h1,
body:not([data-lang="en"]) h2 {
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.3vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.hero-text,
.section-heading p,
.split-section > div > p,
.download-section p,
.privacy-card p,
.seo-section .section-heading > p,
.seo-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.95;
}

body[data-lang="en"] .hero-text,
body[data-lang="en"] .section-heading p,
body[data-lang="en"] .split-section > div > p,
body[data-lang="en"] .download-section p,
body[data-lang="en"] .privacy-card p,
body[data-lang="en"] .seo-section .section-heading > p,
body[data-lang="en"] .seo-card p {
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(145deg, var(--gold), var(--gold-strong));
  color: #082552;
  box-shadow: 0 18px 38px rgba(255, 191, 31, 0.24);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.privacy-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.phone-card {
  position: relative;
  width: min(100%, 390px);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 42px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.phone-top {
  width: 112px;
  height: 20px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.app-preview {
  min-height: 560px;
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 211, 90, 0.16), transparent 15rem),
    linear-gradient(180deg, #0d2a45, #07192a);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-weight: 800;
}

.preview-logo {
  width: 50px;
  height: 50px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.metric-grid article,
.message-card,
.feature-card,
.privacy-card,
.download-section,
.timeline article,
.video-showcase,
.gallery-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.metric-grid article {
  min-height: 118px;
  border-radius: 24px;
  padding: 18px;
}

.metric-grid strong {
  display: block;
  color: var(--gold);
  font-size: 2rem;
}

.metric-grid span,
.message-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.message-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3fe28b;
  box-shadow: 0 0 0 7px rgba(63, 226, 139, 0.12);
}

.message-card p {
  margin: 4px 0 0;
}

.mini-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mini-list span {
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: rgba(255, 211, 90, 0.12);
  color: var(--gold);
  font-weight: 800;
}

.feature-card p,
.timeline p,
.gallery-card p,
.media-note {
  color: var(--muted);
  line-height: 1.85;
}

.media-section {
  position: relative;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.video-showcase {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 18px;
}

.video-frame {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 211, 90, 0.28), transparent 12rem),
    radial-gradient(circle at 82% 80%, rgba(44, 125, 210, 0.36), transparent 16rem),
    linear-gradient(145deg, #0c2b47, #061625);
  isolation: isolate;
  cursor: zoom-in;
}

.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.9;
  z-index: -1;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.video-frame::before {
  width: 230px;
  height: 230px;
  left: 9%;
  top: 12%;
  background: rgba(255, 211, 90, 0.2);
}

.video-frame::after {
  width: 280px;
  height: 280px;
  right: 4%;
  bottom: 2%;
  background: rgba(44, 125, 210, 0.22);
  animation-delay: -2s;
}

.promo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: opacity 220ms ease;
}

.promo-video.is-playing {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 211, 90, 0.48);
  border-radius: 50%;
  background: rgba(255, 211, 90, 0.18);
  backdrop-filter: blur(18px);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255, 211, 90, 0.26);
}

.play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-inline-start: 35px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-inline-start: 24px solid var(--gold);
}

.video-frame.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  inset-inline: 22px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(3, 14, 24, 0.58);
  backdrop-filter: blur(18px);
}

.video-overlay strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.video-overlay p,
.media-note,
.gallery-card p {
  margin: 0;
}

.media-note {
  padding: 14px 6px 0;
  font-size: 0.92rem;
}

.video-support-card {
  margin-top: 18px;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
}

.video-support-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: zoom-in;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.gallery-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(255, 211, 90, 0.34);
  background: rgba(16, 43, 69, 0.94);
}

html[dir="ltr"] .gallery-card:hover {
  transform: translateY(-6px) rotate(0.4deg);
}

.gallery-card-large {
  grid-column: 1 / -1;
  min-height: 300px;
}

.gallery-card strong {
  display: block;
  margin: 16px 0 6px;
  font-size: 1.08rem;
}

.gallery-mock {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 150px;
  overflow: hidden;
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #0b2239;
}

.gallery-card-large .gallery-mock {
  min-height: 180px;
}

.gallery-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.18) 46%, transparent 68%);
  transform: translateX(-120%);
  animation: shimmer 4.8s ease-in-out infinite;
}

.gallery-mock span {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.gallery-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.02);
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-mock.has-image .gallery-image {
  display: block;
}

.gallery-card:hover .gallery-mock.has-image .gallery-image {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.07);
}

.gallery-mock.has-image span,
.gallery-mock.has-image::after {
  opacity: 0;
}

.gallery-dashboard {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}

.gallery-dashboard span:nth-child(1) {
  height: 76%;
  background: rgba(255, 211, 90, 0.28);
}

.gallery-dashboard span:nth-child(2) {
  height: 48%;
}

.gallery-dashboard span:nth-child(3) {
  height: 88%;
  background: rgba(63, 226, 139, 0.18);
}

.gallery-scheduler,
.gallery-export,
.gallery-fastsend,
.gallery-logs {
  align-content: center;
}

.gallery-scheduler span,
.gallery-export span,
.gallery-fastsend span,
.gallery-logs span {
  height: 28px;
}

.gallery-scheduler span:nth-child(2) {
  width: 76%;
  background: rgba(255, 211, 90, 0.24);
}

.gallery-export span:nth-child(1) {
  width: 62%;
  background: rgba(44, 125, 210, 0.34);
}

.gallery-export span:nth-child(3) {
  width: 82%;
  background: rgba(255, 211, 90, 0.2);
}

.gallery-fastsend span:nth-child(1) {
  width: 74%;
  background: rgba(63, 226, 139, 0.18);
}

.gallery-fastsend span:nth-child(2) {
  width: 92%;
  background: rgba(255, 255, 255, 0.13);
}

.gallery-logs span:nth-child(1) {
  width: 86%;
  background: rgba(255, 211, 90, 0.22);
}

.gallery-logs span:nth-child(2) {
  width: 68%;
  background: rgba(44, 125, 210, 0.3);
}

.gallery-logs span:nth-child(3) {
  width: 94%;
  background: rgba(63, 226, 139, 0.16);
}

@keyframes shimmer {
  0%,
  45% {
    transform: translateX(-120%);
  }
  80%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -16px, 0) scale(1.08);
  }
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.timeline article > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--gold);
  color: #082552;
  font-weight: 900;
}

.privacy-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}

.privacy-card {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.privacy-points {
  display: grid;
  gap: 12px;
  align-content: center;
}

.privacy-points span {
  display: block;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.seo-section {
  margin-bottom: 18px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.seo-card h3 {
  margin-bottom: 12px;
  color: var(--gold);
}

.seo-more-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-hero {
  padding-top: 12px;
  padding-bottom: 28px;
}

.article-hero h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article-points {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list .seo-card h3 {
  color: var(--text);
  font-size: 1.05rem;
}

.download-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 58px;
  background:
    linear-gradient(135deg, rgba(255, 211, 90, 0.16), rgba(44, 125, 210, 0.12)),
    var(--surface-strong);
}

.download-actions {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 10, 18, 0.82);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: min(1100px, 100%);
  max-height: min(82vh, 760px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background: #061728;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

.lightbox-content img,
.lightbox-content video {
  display: block;
  width: 100%;
  max-height: min(82vh, 760px);
  object-fit: contain;
  background: #020912;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  inset-inline-end: 24px;
  z-index: 101;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 4px;
  }

  .site-nav a {
    min-width: max-content;
    padding: 9px 12px;
  }

  .hero-section,
  .split-section,
  .privacy-section,
  .download-section,
  .media-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .seo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    top: 8px;
  }

  .brand {
    flex: 1;
  }

  .language-toggle {
    padding: 9px 12px;
  }

  .site-nav a {
    min-width: max-content;
    padding: 8px 10px;
  }

  .video-support-card {
    min-height: 0;
  }

  .video-support-card img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .hero-section {
    gap: 32px;
    padding-bottom: 50px;
  }

  .feature-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .video-frame {
    min-height: 320px;
  }

  .section {
    padding: 54px 0;
  }

  .app-preview {
    min-height: 470px;
    padding: 18px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-lightbox {
    padding: 12px;
  }

  .lightbox-content {
    border-radius: 20px;
  }
}
