:root {
  --bg-dark: #000000;
  --bg-mid: #000000;
  --bg-purple: #000000;
  --card: rgba(18, 24, 29, 0.86);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf2;
  --muted: #9aa3ad;
  --accent: #a7fffa;
  --accent-dark: #a7fffa;
  --font-en: "Inter", "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  --font-fa: "YekanBakh", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

@font-face {
  font-family: "YekanBakh";
  src: url("Yekan Bakh.TTF") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(800px 600px at 20% 30%, rgba(167, 255, 250, 0.28), transparent 60%),
    radial-gradient(700px 520px at 80% 70%, rgba(167, 255, 250, 0.22), transparent 60%),
    radial-gradient(900px 700px at 50% 50%, rgba(167, 255, 250, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(900px 700px at 15% 20%, rgba(167, 255, 250, 0.22), transparent 60%),
    radial-gradient(800px 600px at 85% 80%, rgba(167, 255, 250, 0.18), transparent 60%),
    radial-gradient(1000px 800px at 50% 50%, rgba(167, 255, 250, 0.14), transparent 65%);
  filter: blur(40px);
  opacity: 0.9;
  animation: bgFloat 16s ease-in-out infinite;
}

@keyframes bgFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-4%, 3%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

html[data-lang="fa"] body {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

html[data-lang="fa"] .tab,
html[data-lang="fa"] .tab-label {
  font-family: var(--font-fa);
}

html[data-lang="fa"] .tabs {
  font-family: var(--font-fa);
}

html[data-dir="rtl"] body {
  direction: rtl;
  text-align: right;
}


[data-i18n] {
  transition: opacity 180ms ease, transform 180ms ease;
}

html.is-lang-switch [data-i18n] {
  opacity: 0;
  transform: translateY(4px);
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 52px 32px 48px;
}

.hero {
  display: grid;
  gap: 26px;
  padding-bottom: 28px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

html[data-dir="rtl"] .brand {
  margin-left: 0;
  margin-right: -12px;
}

.logo-card {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  box-shadow: none;
  backdrop-filter: none;
}

.logo-img {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  object-fit: cover;
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.hero-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero-nav .nav-cta {
  border: 1px solid rgba(167, 255, 250, 0.28);
  background: rgba(167, 255, 250, 0.12);
  color: #fff;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu {
  position: relative;
}

.menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 4px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.menu-btn span {
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
}

.menu-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.menu-panel {
  position: absolute;
  top: 46px;
  left: 0;
  min-width: 160px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 16, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.menu-panel a {
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.menu-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.lang-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.lang-icon svg {
  width: 18px;
  height: 18px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.hero-art {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-art img {
  width: min(320px, 36vw);
  margin-top: -69px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  animation: heroFloat 12s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 10px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

html[data-dir="rtl"] .hero-text {
  grid-column: 2;
  direction: rtl;
  text-align: right;
}

html[data-dir="rtl"] .hero-art {
  grid-column: 1;
  justify-content: flex-start;
  position: relative;
  height: 0;
}

html[data-dir="rtl"] .hero-art img {
  position: absolute;
  top: -271px;
  left: 0;
  transform: none;
  margin-top: 0;
}

html[data-dir="rtl"] .hero-main {
  direction: ltr;
  grid-template-columns: 0.9fr 1.1fr;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.hero-text p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 46ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.action-btn.primary {
  border-color: rgba(167, 255, 250, 0.36);
  background: linear-gradient(135deg, rgba(167, 255, 250, 0.22), rgba(167, 255, 250, 0.12));
  box-shadow: 0 0 0 1px rgba(167, 255, 250, 0.18), 0 18px 36px rgba(0, 0, 0, 0.35);
}

.action-btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  margin-bottom: 32px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section-heading.full {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

html[data-dir="rtl"] .section-heading {
  text-align: right;
}

.platforms {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  justify-content: flex-start;
  height: 44px;
  text-align: center;
  padding-left: 12px;
}

.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.tab.is-active {
  border-color: rgba(167, 255, 250, 0.4);
  background: rgba(167, 255, 250, 0.14);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 255, 250, 0.18);
}

.tab-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  line-height: 0;
}

.tab-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
  color: #fff;
}

.tab-label {
  font-weight: 600;
  line-height: 1;
  text-align: left;
  font-family: inherit;
}

.tab-panels {
  position: relative;
}

.panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "info shots";
  gap: 96px;
  align-items: center;
  padding: 16px 0;
  --panel-box-h: clamp(300px, 48vw, 500px);
}

.panel.active {
  display: grid;
  animation: panelFade 220ms ease;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.panel-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  text-align: inherit;
  white-space: pre-line;
}

.panel-info {
  grid-area: info;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
  justify-items: start;
}

.panel-box {
  width: min(420px, 100%);
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 20, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: inherit;
  height: var(--panel-box-h);
  overflow: hidden;
}

.panel-info .action-btn {
  justify-self: start;
  text-align: center;
}

.panel-box .action-btn {
  width: 100%;
  justify-self: stretch;
  margin-top: auto;
}

.panel-shots {
  grid-area: shots;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.panel-shots::-webkit-scrollbar {
  display: none;
}

.panel-shots .screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0;
}

.panel-shots .screenshot-item img {
  height: clamp(300px, 48vw, 500px);
  width: auto;
  border-radius: 0;
  display: block;
}

.panel[data-platform="macos"] .panel-shots .screenshot-item img {
  width: min(420px, 34vw);
  height: auto;
  max-height: clamp(220px, 32vw, 340px);
}

@media (min-width: 801px) {
  .panel[data-platform="macos"] .panel-shots .screenshot-item {
    margin-left: -18px;
  }
}

html[data-dir="rtl"] .platforms {
  direction: rtl;
}

html[data-dir="rtl"] .tabs {
  justify-content: flex-end;
  direction: rtl;
}

html[data-dir="rtl"] .tab {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
  padding-right: 12px;
  padding-left: 14px;
}

html[data-dir="rtl"] .tab-label {
  text-align: right;
}

html[data-dir="rtl"] .tab-icon {
  order: 2;
}

html[data-dir="rtl"] .tab-label {
  order: 1;
}

html[data-dir="rtl"] .panel-info {
  text-align: right;
  justify-items: end;
  direction: rtl;
}

html[data-dir="rtl"] .panel {
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas: "shots info";
}

html[data-dir="rtl"] .panel-shots {
  direction: ltr;
  justify-content: flex-start;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 8px 0 32px;
}

.feature-card {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

@media (min-width: 801px) {
  .feature-card {
    transition: transform 0.45s ease-in-out, border 0.35s ease-in-out, box-shadow 0.45s ease-in-out, background 0.45s ease-in-out;
    will-change: transform;
  }

  .feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-strong);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    animation: featureFloat 3.2s ease-in-out infinite;
  }
}

@keyframes featureFloat {
  0% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(-4px);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.card {
  position: relative;
  height: 120px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(22, 29, 35, 0.95), rgba(14, 18, 24, 0.85));
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 6px;
  justify-items: center;
  text-align: center;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-strong);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.card.pressed {
  transform: translateY(-2px) scale(0.99);
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #dfe7ee;
}

.icon svg {
  width: 20px;
  height: 20px;
  color: #f7f9fc;
}

.icon svg path {
  fill: currentColor !important;
}

.title {
  font-weight: 600;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.copyright {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .page {
    padding: 40px 20px 40px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }
  
  .hero-art {
    display: none;
  }

  .card {
    height: 112px;
  }
}

@media (max-width: 560px) {
  .hero-top {
    align-items: center;
  }

  .brand {
    align-self: stretch;
  }

  .hero-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .hero-nav a {
    flex: 1 1 0;
    text-align: center;
  }

  .hero-nav .nav-cta {
    flex: 1 1 0;
  }

  .menu-panel {
    left: 0;
    right: auto;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

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

  .tab {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 16px;
    grid-template-areas:
      "shots"
      "info";
    justify-items: center;
    max-width: 100%;
    overflow: hidden;
    direction: ltr;
    align-items: center;
  }

  html[data-dir="rtl"] .panel {
    grid-template-areas:
      "shots"
      "info";
    justify-items: center;
  }

  .panel-shots {
    order: 1;
  }

  .panel-info {
    order: 2;
    text-align: center;
    justify-items: center;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }

  .panel-box {
    width: 100%;
    height: auto;
    min-height: min(360px, 60vh);
    margin-inline: auto;
    max-width: 420px;
  }

  .panel-info p {
    text-align: left;
  }

  html[data-dir="rtl"] .panel-info p {
    text-align: right;
  }

  .panel-info .action-btn {
    justify-self: center;
    padding: 18px 24px;
    font-size: 17px;
    width: 100%;
    max-width: 360px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .page,
  .platforms {
    overflow-x: hidden;
  }

  .panel-shots {
    width: 100%;
    padding: 6px 0 12px;
    scroll-padding-inline: 0;
    overflow: hidden;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    min-width: 0;
    align-items: center;
  }

  .panel-shots .screenshot-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .panel-shots .screenshot-item img {
    width: min(92vw, 380px);
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    max-height: 78vh;
  }

  .panel[data-platform="macos"] .panel-shots .screenshot-item img {
    width: min(96vw, 460px);
    max-height: 82vh;
  }

  html[data-dir="rtl"] .panel-shots .screenshot-item img {
    width: min(92vw, 380px);
  }

  html[data-dir="rtl"] .panel[data-platform="macos"] .panel-shots .screenshot-item img {
    width: min(96vw, 460px);
  }

  html[data-dir="rtl"] .panel-shots {
    direction: ltr;
  }
}
