:root {
  --bg: #f7fafc;
  --bg-card: #ffffff;
  --primary: #2563eb;
  --primary-soft: #e0ecff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont,
    "Poppins", sans-serif;
  background: radial-gradient(circle at top left, #eff6ff, #f9fafb);
  color: var(--text-main);
}

/* هدر */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-item {
  border: none;
  outline: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: 0.2s ease;
}

.nav-item i {
  font-size: 1.1rem;
}

.nav-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

/* بخش هیرو */

.hero {
  padding: 4rem 4vw 2rem;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 720px;
  padding: 2.5rem 2.2rem;
  border-radius: 2rem;
  background: radial-gradient(circle at top right, #eff6ff, #ffffff);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
}

.hero-sub {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}

/* دکمه‌ها */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 25px rgba(37, 99, 235, 0.45);
}

.btn.ghost {
  background: #fff;
  color: var(--text-main);
  border-color: var(--border-soft);
}

.btn.ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* سکشن‌های اصلی */

.section {
  padding: 2rem 4vw 1rem;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ترمینال */
/* ترمینال */

.terminal {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #020617;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: #020617;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.terminal-dots {
  display: flex;
  gap: 0.35rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
}

.dot-red {
  background: #f97373;
}
.dot-yellow {
  background: #facc15;
}
.dot-green {
  background: #4ade80;
}

.terminal-title {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ---------- این قسمت آپدیت‌شده است ---------- */

.terminal-body {
  direction: ltr;
  text-align: left;

  padding: 1.1rem 1rem 1.2rem;
  font-family: "Poppins", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.83rem;
}

.terminal-body p {
  margin: 0.15rem 0;
}

.prompt {
  color: #22c55e;
  margin-right: 0.4rem;
}

.terminal-body a {
  color: #38bdf8;
  text-decoration: none;
}

.terminal-body a:hover {
  text-decoration: underline;
}

/* افکت تایپینگ */

.type-line::after {
  content: "▋";
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}
/* کارت‌های تماس */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 1.4rem;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.contact-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.contact-icon i {
  font-size: 1.2rem;
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.contact-card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}

.contact-link:hover {
  text-decoration: underline;
}

/* فوتر */

.footer {
  margin-top: 2rem;
  padding: 1.8rem 4vw 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  max-width: 960px;
  margin: 0 auto 0.7rem;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ریسپانسیو */

@media (max-width: 720px) {
  .header {
    padding-inline: 1.1rem;
  }

  .hero {
    padding: 3rem 1.1rem 1.5rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .section {
    padding-inline: 1.1rem;
  }
}