@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: #0b0d11;
  color: #e4e6eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Nav ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e2028;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: #f0f0f5;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: .9rem;
  color: #888;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f0f0f5;
  border-color: #6366f1;
}

/* ---- Hero ---- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.accent {
  color: #a5b4fc;
}

.hero-content p {
  max-width: 540px;
  margin: 0 auto;
  color: #888;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---- Apps Grid ---- */
.apps-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.apps-grid h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: #f0f0f5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.app-card {
  background: #13151c;
  border: 1px solid #1e2028;
  border-radius: 12px;
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, .12);
  border-color: #6366f1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.app-card p {
  color: #888;
  font-size: .9rem;
  line-height: 1.5;
}

/* ---- App Detail ---- */
.app-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.detail-header {
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.detail-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  color: #888;
  font-size: 1.05rem;
}

/* ---- Preview Mockup ---- */
.preview {
  margin-bottom: 48px;
}

.preview-placeholder {
  border-radius: 14px;
  padding: 32px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup {
  width: 100%;
  max-width: 520px;
  background: rgba(0, 0, 0, .35);
  border-radius: 10px;
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .15);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

/* chart */
.chart-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bar {
  flex: 1;
  background: rgba(255, 255, 255, .25);
  border-radius: 4px 4px 0 0;
  transition: height .3s;
}

/* canvas shapes */
.canvas-body {
  position: relative;
  min-height: 220px;
}

.shape {
  position: absolute;
}

.connector {
  position: absolute;
  top: 22%;
  left: 18%;
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, .35);
}

.text-node {
  position: absolute;
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* logs */
.logs-body {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .8rem;
  gap: 6px;
  min-height: 140px;
}

.log-line {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
}

.log-level {
  display: inline-block;
  width: 44px;
  font-weight: 600;
  font-size: .7rem;
}

.log-level.info { color: #67e8f9; }
.log-level.warn { color: #fbbf24; }
.log-level.error { color: #f87171; }

/* ---- Features ---- */
.features {
  margin-bottom: 40px;
}

.features h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features li {
  padding-left: 20px;
  position: relative;
  color: #aaa;
  line-height: 1.5;
}

.features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: 600;
}

.back-link {
  margin-bottom: 40px;
}

.back-link a {
  color: #888;
  transition: color .2s;
}

.back-link a:hover {
  color: #a5b4fc;
}

/* ---- App Header (icon + title) ---- */
.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding: 20px;
  background: #13151c;
  border: 1px solid #1e2028;
  border-radius: 12px;
}

.stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.stat-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #f0f0f5;
}

.stat-label {
  display: block;
  font-size: .75rem;
  color: #888;
  margin-top: 4px;
}

/* ---- Description ---- */
.description {
  margin-bottom: 40px;
}

.description h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.description p {
  color: #aaa;
  line-height: 1.8;
  font-size: .95rem;
}

/* ---- Screenshots ---- */
.screenshots {
  margin-bottom: 40px;
}

.screenshots h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.screenshot-gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #1e2028;
}

/* ---- Download Section ---- */
.download-section {
  margin-bottom: 40px;
  text-align: center;
}

.download-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  transition: background .2s, transform .2s;
}

.download-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* ---- Contact ---- */
.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.contact-inner {
  background: #13151c;
  border: 1px solid #1e2028;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.contact h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #f0f0f5;
}

.contact-desc {
  color: #888;
  font-size: .95rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  background: #1a1d28;
  border: 1px solid #262933;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: #6366f1;
  box-shadow: 0 8px 30px rgba(99, 102, 241, .1);
}

.contact-icon {
  font-size: 1.8rem;
  line-height: 1;
  color: #a5b4fc;
}

.contact-label {
  font-size: .85rem;
  font-weight: 600;
  color: #f0f0f5;
}

.contact-value {
  font-size: .8rem;
  color: #888;
  direction: ltr;
}

/* ---- Footer ---- */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 24px;
  color: #555;
  font-size: .85rem;
  border-top: 1px solid #1e2028;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: .8rem;
  }
  .hero {
    padding: 60px 20px 40px;
  }
  .app-detail {
    padding: 40px 20px;
  }
  .preview-placeholder {
    padding: 16px;
    min-height: 240px;
  }
}
