:root {
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --bg: #08080c;
  --bg-elevated: #11111118;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow--1 {
  width: 520px;
  height: 520px;
  background: var(--blue-glow);
  top: -180px;
  right: -120px;
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.12);
  bottom: 10%;
  left: -100px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 8, 12, 0.75);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--white);
}

.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav__cta:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--blue-glow);
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__logo {
  width: min(320px, 85vw);
  height: auto;
  margin: 0 auto 1.75rem;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--blue-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  max-width: 640px;
  margin-inline: auto;
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-light);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Product type sections */
.product-type {
  margin-bottom: 3.5rem;
}

.product-type:last-child {
  margin-bottom: 0;
}

.product-type__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.product-type__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.product-type--site .product-type__icon {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.25);
}

.product-type__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.product-type__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Category (legacy, kept for compatibility) */
.category {
  margin-bottom: 3.5rem;
}

.category:last-child {
  margin-bottom: 0;
}

.category__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.category__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.category__icon--personal {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.category__icon--business {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.category__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.category__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Solution cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 2rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card--business::before {
  background: linear-gradient(90deg, #a855f7, #c084fc);
}

.card--business:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card--business .card__icon {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.card__badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.card__badge--type {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.card--type-site .card__badge--type {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.25);
}

.card__badge--audience {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.card__badge--pricing-subscription {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.card__badge--pricing-product {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.about__text strong,
.section__desc strong {
  color: var(--text);
  font-weight: 600;
}

.card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__title-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.5rem;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.card__features {
  list-style: none;
  margin-bottom: 1.75rem;
}

.card__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.card__features li::before {
  content: "✓";
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.8rem;
}

.card--business .card__features li::before {
  color: #c084fc;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-light);
  transition: gap var(--transition), color var(--transition);
}

.card__link:hover {
  gap: 0.75rem;
  color: var(--white);
}

.card--type-site::before {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.card--type-site:hover {
  border-color: rgba(251, 146, 60, 0.3);
}

.card--type-site .card__icon {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.2);
}

.card--type-site .card__features li::before {
  color: #fb923c;
}

.card--type-site .card__link {
  color: #fb923c;
}

/* About */
.about {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-box {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.feature-box__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-box__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-box__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  padding-bottom: 2rem;
}

.contact__box {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.contact__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}

.contact__desc {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  direction: ltr;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact__phone:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--blue-glow);
}

.card__link--preview {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

body.modal-open {
  overflow: hidden;
}

/* Site preview — scroll on hover */
.site-preview {
  position: relative;
  height: 220px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}

.site-preview img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.06s linear;
}

.site-preview__hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.site-preview:hover .site-preview__hint,
.site-preview:focus-within .site-preview__hint {
  opacity: 1;
}

.site-preview--modal {
  height: min(72vh, 680px);
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
  cursor: ns-resize;
}

/* Preview modal */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.preview-modal__dialog {
  position: relative;
  width: min(900px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #12121a;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}

.preview-modal__label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.preview-modal__title {
  font-size: 1rem;
  font-weight: 700;
}

.preview-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.preview-modal__close:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .site-preview {
    height: 180px;
  }

  .site-preview--modal {
    height: 60vh;
  }

  .site-preview__hint {
    opacity: 1;
    font-size: 0.68rem;
  }
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__logo {
  width: auto;
  height: 36px;
  opacity: 0.9;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(8, 8, 12, 0.95);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .header__inner {
    position: relative;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}
