@font-face {
  font-family: "Vazirmatn";
  src: local("Vazirmatn"), local("Tahoma");
  font-weight: 100 900;
}

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-2: #0f172a;
  --accent: #14b8a6;
  --shadow: 0 24px 80px rgba(15, 23, 42, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .12), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, .13), transparent 36rem),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, .78);
  border-bottom: 1px solid rgba(226, 232, 240, .78);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(37, 99, 235, .26);
}

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

.brand small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .22);
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, .28);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 14px;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: var(--primary-2);
  box-shadow: none;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .88rem;
}

.eyebrow.light {
  color: #dbeafe;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(20, 184, 166, .16);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.25;
  letter-spacing: -1.2px;
}

.hero p,
.lead {
  color: #475569;
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row span {
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .9rem;
}

.hero-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .96)),
    #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -20%;
  width: 280px;
  height: 280px;
  background: rgba(20, 184, 166, .28);
  filter: blur(42px);
  border-radius: 50%;
}

.card-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 900;
}

.pill.ok {
  color: #052e2b;
  background: #5eead4;
}

.muted {
  color: #94a3b8;
  font-size: .82rem;
  direction: ltr;
}

pre {
  margin: 0;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
  font-family: inherit;
}

.hero-card pre {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: rgba(2, 6, 23, .46);
  border: 1px solid rgba(148, 163, 184, .18);
  color: #bfdbfe;
  line-height: 1.9;
}

.section {
  padding: 72px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 24px;
}

.stats article {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
}

.stats strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.stats span {
  color: var(--muted);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.section-title.align-right {
  text-align: right;
  margin-right: 0;
}

.section-title span {
  color: var(--primary);
  font-weight: 900;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.45;
  letter-spacing: -.5px;
}

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

.feature-card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eff6ff;
  font-size: 1.35rem;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.12rem;
}

.feature-card p,
.footer p,
.faq p {
  color: var(--muted);
  margin: 0;
}

.docs-section {
  background: #0f172a;
  color: #fff;
  margin-top: 36px;
}

.docs-section .section-title span {
  color: #5eead4;
}

.docs-section .lead {
  color: #cbd5e1;
}

.docs-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

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

.endpoint-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 13px 16px;
}

.endpoint-list b {
  color: #5eead4;
  direction: ltr;
}

.endpoint-list span {
  direction: ltr;
  color: #dbeafe;
}

.code-box {
  background: rgba(2, 6, 23, .6);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 28px;
  padding: 24px;
  overflow: auto;
}

.code-box pre {
  color: #bfdbfe;
  line-height: 1.85;
}

.status-board {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
}

.status-item strong {
  display: block;
}

.status-item span {
  color: var(--muted);
  font-size: .9rem;
}

.status-dot {
  font-style: normal;
  font-size: .82rem;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 12px;
}

.status-dot.online {
  color: #065f46;
  background: #d1fae5;
}

.faq {
  max-width: 850px;
  margin: 0 auto;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 12px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-top: 12px;
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.3), transparent 25rem),
    linear-gradient(135deg, #1d4ed8, #0f172a);
  color: #fff;
  border-radius: 34px;
  padding: 48px;
  margin-bottom: 76px;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 16px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.cta p {
  margin: 0;
  color: #dbeafe;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .55fr .55fr;
  gap: 34px;
}

.footer h4 {
  margin: 0 0 12px;
}

.footer a:not(.brand) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

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

.footer-brand {
  margin-bottom: 14px;
}

.copyright {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 20px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .9rem;
}

.simple-page {
  min-height: 72vh;
  padding: 68px 0;
}

.simple-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(15,23,42,.07);
}

.simple-card h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.simple-card p,
.simple-card li {
  color: #475569;
}

.simple-card a {
  color: var(--primary);
  font-weight: 900;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

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

  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .stats,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cta {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .hero-card,
  .feature-card,
  .simple-card {
    border-radius: 22px;
  }
}
