/* Narvan — Stylish Landing */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-deep: #0369a1;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #fafbfc 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(14, 165, 233, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
  --radius: 14px;
  --radius-lg: 20px;
  --font-sans: 'Vazir', 'Tahoma', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header — glass, minimal */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
  opacity: 0.2;
  pointer-events: none;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.25));
  transition: transform 0.3s ease;
}

.logo-wrap svg .cls-1 {
  fill: var(--primary);
}
.logo-wrap svg .cls-2 {
  fill: var(--primary-dark);
}

.logo-wrap:hover svg {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-intro {
  background: var(--bg-hero);
  padding-top: 3rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.section-intro::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-intro::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 45%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-benefits {
  background: var(--bg);
}

.section-docs {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
}

.section-download {
  background: linear-gradient(160deg, #f0f9ff 0%, #fafbfc 100%);
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.section-docs .docs-desc,
.section-download .download-desc {
  text-align: center;
}

/* Main Content */
.main-content {
  min-height: auto;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-content {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-deep) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0;
  max-width: 92%;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Hero Image */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.8;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14, 165, 233, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-mockup img:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateY(-6px);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(14, 165, 233, 0.12));
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.08);
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Docs Section */
.docs-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.docs-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.docs-links .btn {
  min-width: 160px;
}

/* Download Section */
.download-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.section-download .action-buttons {
  justify-content: center;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 2.5rem 0;
  margin-top: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
  opacity: 0.6;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand .brand-name {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-info p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-info strong {
  color: #f1f5f9;
  margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-description {
    max-width: 100%;
  }

  .action-buttons {
    justify-content: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-content {
    padding: 0 1rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .action-buttons,
  .docs-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone-mockup {
    width: 240px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .logo-wrap svg {
    width: 40px;
    height: 48px;
  }

  .nav-links {
    gap: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
