:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fef2f2;
  --border: #fecaca;
  --border-strong: #f87171;
  --text: #111827;
  --text-muted: #4b5563;
  --red: #dc2626;
  --red-hover: #b91c1c;
  --red-soft: #fee2e2;
  --burgundy: #9f1239;
  --burgundy-hover: #881337;
  --burgundy-soft: #ffe4e6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(220, 38, 38, 0.08);
  --radius: 16px;
  --font: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
}

.brand-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.telegram-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  animation: telegram-pulse 1.6s ease-in-out infinite;
  transition: background 0.15s ease;
}

.telegram-btn:hover {
  background: var(--red-hover);
}

.telegram-btn:focus-visible {
  outline: 3px solid var(--red-soft);
  outline-offset: 2px;
}

@keyframes telegram-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 color-mix(in oklab, var(--red) 45%, transparent),
      0 4px 14px rgba(220, 38, 38, 0.28);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 0 10px color-mix(in oklab, var(--red) 0%, transparent),
      0 6px 18px rgba(220, 38, 38, 0.35);
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .telegram-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
}

.hero {
  padding: 2.5rem 0 1.5rem;
  background:
    linear-gradient(180deg, var(--surface-soft) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.hero-title-main {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
}

.hero-clients {
  display: inline;
  margin-inline-start: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.vip-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.vip-rainbow-text {
  margin: 0;
  flex: 1 1 220px;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 800;
  line-height: 1.5;
  background-image: linear-gradient(
    90deg,
    #fda4af,
    #fb7185,
    #f43f5e,
    #e11d48,
    #be123c,
    #9f1239,
    #881337
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-rainbow-shift 3.2s ease-in-out infinite;
}

@keyframes vip-rainbow-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.vip-click-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  animation: burgundy-pulse 1.6s ease-in-out infinite;
  transition: background 0.15s ease;
}

.vip-click-btn:hover {
  background: var(--burgundy-hover);
}

.vip-click-btn:focus-visible {
  outline: 3px solid var(--burgundy-soft);
  outline-offset: 2px;
}

.configs-section {
  padding: 1.75rem 0 2rem;
}

.configs-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.configs-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--red);
}

.copy-guide {
  display: flex;
  align-items: flex-end;
  color: var(--red);
  transform: translateX(42px);
}

.crescent-arrow {
  width: 72px;
  height: 100px;
  overflow: visible;
  transform-origin: 50% 12%;
  animation: crescent-bob 2.4s ease-in-out infinite;
}

.crescent-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: crescent-stroke 2.4s ease-in-out infinite;
}

.crescent-head {
  transform-box: fill-box;
  transform-origin: center top;
  animation: crescent-head-in 2.4s ease-in-out infinite;
}

@keyframes crescent-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  55% {
    transform: translateY(8px);
  }
}

@keyframes crescent-stroke {
  0% {
    stroke-dashoffset: 100;
  }
  42%,
  78% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes crescent-head-in {
  0%,
  28% {
    opacity: 0;
    transform: translateY(-8px);
  }
  46%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.35;
    transform: translateY(5px);
  }
}

.apps-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.apps-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  animation: burgundy-pulse 1.6s ease-in-out infinite;
  transition: background 0.15s ease;
}

.apps-cta-btn:hover {
  background: var(--burgundy-hover);
}

.apps-cta-btn:focus-visible {
  outline: 3px solid var(--burgundy-soft);
  outline-offset: 2px;
}

@keyframes burgundy-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 color-mix(in oklab, var(--burgundy) 45%, transparent),
      0 6px 18px rgba(159, 18, 57, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 0 12px color-mix(in oklab, var(--burgundy) 0%, transparent),
      0 8px 22px rgba(159, 18, 57, 0.38);
  }
}

.downloads-section {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--white) 0%, #fff7f8 100%);
  scroll-margin-top: 72px;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
}

.section-lead {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.downloads-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .downloads-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.download-card-body {
  flex: 1;
}

.download-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.download-card-top h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.platform-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: var(--burgundy-soft);
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.download-desc {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.download-note {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.download-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.download-link.primary {
  background: var(--burgundy);
  color: var(--white);
}

.download-link.primary:hover {
  background: var(--burgundy-hover);
}

.download-link.secondary {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--burgundy);
}

.download-link.secondary:hover {
  background: var(--burgundy-soft);
}

.download-link:focus-visible {
  outline: 3px solid var(--burgundy-soft);
  outline-offset: 2px;
}

.configs-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .configs-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.operator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1.1rem 1.2rem;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red);
}

.card-hint {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.config-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.config-item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

@media (min-width: 480px) {
  .config-item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.config-meta h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.config-preview {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.copy-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--red-hover);
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn:focus-visible {
  outline: 3px solid var(--red-soft);
  outline-offset: 2px;
}

.copy-btn.is-copied {
  background: var(--red-hover);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.copy-arrow {
  display: inline-flex;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--white);
}

.empty-state {
  margin: 0;
  padding: 1.5rem 1.2rem 1.75rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text);
  font-size: 0.95rem;
  direction: rtl;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-weight: 800;
  color: var(--red);
}

.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.footer-contacts a {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: none;
}

.footer-contacts a:hover {
  color: var(--burgundy-hover);
}
