:root {
  --bg: #0f0b1e;
  --bg-soft: #150f28;
  --card: #1b1533;
  --border: rgba(255,255,255,0.08);
  --text: #f2f0f9;
  --text-muted: #a8a3c2;
  --primary: #6c4cf1;
  --primary-2: #9b5cf6;
  --accent: #21e6c1;
  --radius: 16px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 11, 30, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.logo span { color: var(--primary-2); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  border: none;
}
.btn:active { transform: scale(0.97); }

.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
}
.btn-nav:hover { background: var(--primary-2); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 76, 241, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(108, 76, 241, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 25% 20%, rgba(108,76,241,0.28), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(33,230,193,0.16), transparent 45%);
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 24px;
  max-width: 820px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Features */
.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px;
}

.features { padding: 90px 0; background: var(--bg-soft); }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,76,241,0.5);
}

.card .icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* How it works */
.how { padding: 90px 0; }

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

.step {
  text-align: center;
  padding: 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}

.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* About */
.about { padding: 90px 0; background: var(--bg-soft); }

.about-inner {
  max-width: 760px;
  text-align: center;
}
.about-inner p { color: var(--text-muted); font-size: 17px; }

/* CTA band */
.cta-band { padding: 100px 0; }

.cta-band-inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(108,76,241,0.18), rgba(33,230,193,0.1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
}

.cta-band-inner h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.cta-band-inner p { color: var(--text-muted); margin: 0 0 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-domain { color: var(--primary-2); font-weight: 600; }

/* Responsive */
@media (max-width: 860px) {
  .cards, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .btn-nav { display: none; }
  .menu-toggle { display: flex; }
}
