@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-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: #121019;
  --surface: #1c1926;
  --surface-2: #262235;
  --border: #332e45;
  --text: #ece8f6;
  --muted: #a7a0bb;
  --primary: #c3a8ff;
  --primary-strong: #8f6bf2;
  --on-primary: #1b0f3a;
  --accent: #ffe600;
  --radius: 18px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .lang {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
}

@media (max-width: 720px) {
  .nav a:not(.lang) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: #d4c0ff;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-2);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .actions {
    justify-content: center;
  }
}

.badge {
  display: inline-block;
  background: var(--surface-2);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Phone mockup */
.phone {
  justify-self: center;
  width: 250px;
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  border: 8px solid #2b2738;
  background: linear-gradient(160deg, #3a2d63 0%, #1d1a2b 55%, #3d2a1f 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(143 107 242 / 25%);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 70px;
  height: 18px;
  border-radius: 999px;
  background: #0d0b12;
}

.phone .play {
  position: absolute;
  top: 38%;
  left: 50%;
  translate: -50% -50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  display: grid;
  place-items: center;
}

.phone .play::after {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-inline-start: 4px;
}

.caption {
  position: absolute;
  bottom: 18%;
  left: 50%;
  translate: -50% 0;
  width: 85%;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #fff;
  text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000;
}

.caption span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  opacity: 0;
  animation: caption 9s infinite both;
}

.caption span:nth-child(2) {
  animation-delay: 3s;
}

.caption span:nth-child(3) {
  animation-delay: 6s;
}

.caption mark {
  background: none;
  color: var(--accent);
}

/* Each caption is visible for its own third of the cycle, hidden otherwise
   (including before its animation-delay starts, via fill-mode "both"). */
@keyframes caption {
  0% {
    opacity: 0;
  }
  2%,
  31% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

/* Sections */
section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card h3 {
  margin: 12px 0 6px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Pricing */
.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.plan.featured {
  border: 2px solid var(--primary);
}

.plan .ribbon {
  position: absolute;
  top: -13px;
  inset-inline-start: 20px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
}

.plan .name {
  font-size: 1.2rem;
  font-weight: 800;
}

.plan .price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
}

.plan .price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  color: var(--muted);
  flex: 1;
}

.plan li::before {
  content: "✓";
  color: var(--primary);
  margin-inline-end: 8px;
}

.note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Download */
.download {
  text-align: center;
}

.download .card {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px 24px;
  background: linear-gradient(135deg, #2a1f4d, var(--surface));
}

.download .actions {
  justify-content: center;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.enamad {
  width: 96px;
  height: 96px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Legal / content pages */
.page {
  padding: 48px 0 72px;
}

.page .container {
  max-width: 800px;
}

.page h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.page .updated {
  color: var(--muted);
  margin: 0 0 32px;
}

.page h2 {
  font-size: 1.25rem;
  margin: 32px 0 8px;
}

.page p,
.page li {
  color: #d6d0e6;
}

.placeholder {
  background: rgb(255 230 0 / 12%);
  color: var(--accent);
  border-radius: 6px;
  padding: 0 6px;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.contact-list strong {
  display: block;
  color: var(--text);
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
}
