/* Vidly AI Official Brand Styling */
:root {
  --bg-dark: #07000F;
  --card-bg: #120822;
  --purple-primary: #7038FF;
  --purple-glow: rgba(112, 56, 255, 0.4);
  --gold-accent: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.4);
  --text-white: #FFFFFF;
  --text-gray: #A1A1AA;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

/* Homepage Responsive Image Wrapper */
.homepage-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(112, 56, 255, 0.2);
}

.homepage-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay Clickable Hotspots Layer */
.hotspot-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hotspot-btn {
  position: absolute;
  display: block;
  cursor: pointer;
  border-radius: 14px;
  transition: background-color 0.2s ease, outline 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background-color: rgba(112, 56, 255, 0.0);
}

.hotspot-btn:hover {
  background-color: rgba(245, 158, 11, 0.12);
  outline: 2px solid var(--gold-accent);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: scale(1.01);
}

/* Language Switcher Header Button */
.web-lang-switcher {
  position: absolute;
  top: 0.8%;
  left: 2%;
  background: rgba(18, 8, 34, 0.85);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.web-lang-switcher:hover {
  background: var(--purple-primary);
  color: var(--text-white);
  transform: scale(1.05);
}

/* Top Navigation Hotspots */
.hotspot-nav-home {
  top: 0.8%;
  left: 36%;
  width: 5%;
  height: 1.8%;
  border-radius: 20px;
}

.hotspot-nav-download {
  top: 0.8%;
  left: 10%;
  width: 12%;
  height: 1.8%;
  border-radius: 20px;
}

/* Hero Download Buttons */
.hotspot-download-hero-android {
  top: 15.2%;
  left: 55.5%;
  width: 15.5%;
  height: 2.2%;
  border-radius: 18px;
}

.hotspot-download-footer-android {
  top: 91.5%;
  left: 55.5%;
  width: 18.5%;
  height: 2.2%;
  border-radius: 18px;
}

/* Feature Grid Hotspots ("قابلیت‌های اصلی ویدلی") */
/* Card 1: ساخت و موسیقی و صدا */
.hotspot-grid-music {
  top: 57.2%;
  left: 78.8%;
  width: 17.5%;
  height: 9.8%;
  border-radius: 18px;
}

/* Card 2: ساخت ویدیو حرفه‌ای */
.hotspot-grid-video {
  top: 57.2%;
  left: 60.2%;
  width: 17.5%;
  height: 9.8%;
  border-radius: 18px;
}

/* Card 3: ساخت عکس تخصصی */
.hotspot-grid-image {
  top: 57.2%;
  left: 41.6%;
  width: 17.5%;
  height: 9.8%;
  border-radius: 18px;
}

/* Card 4: تماس تصویری و صوتی */
.hotspot-grid-call {
  top: 57.2%;
  left: 23%;
  width: 17.5%;
  height: 9.8%;
  border-radius: 18px;
}

/* Card 5: چت و مکالمه هوشمند */
.hotspot-grid-ai {
  top: 57.2%;
  left: 4.4%;
  width: 17.5%;
  height: 9.8%;
  border-radius: 18px;
}

/* Sticky Mobile Download Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 8, 34, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(112, 56, 255, 0.4);
  padding: 12px 16px;
  z-index: 999;
  text-align: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
}

.mobile-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--purple-primary) 0%, #3A167A 100%);
  color: var(--text-white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--purple-glow);
}

/* Feature Details Page Design */
.feature-page-body {
  background: radial-gradient(circle at top center, #1F083A 0%, #07000F 70%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.feature-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(112, 56, 255, 0.4);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(112, 56, 255, 0.15);
  backdrop-filter: blur(10px);
}

.feature-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.feature-subtitle {
  color: var(--gold-accent);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.feature-description {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.feature-highlights {
  list-style: none;
  margin-bottom: 36px;
  padding: 0;
}

.feature-highlights li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
  color: #E4E4E7;
  font-size: 14px;
}

.feature-highlights li::before {
  content: "✦";
  position: absolute;
  right: 0;
  color: var(--purple-primary);
  font-weight: bold;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.download-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--purple-primary) 0%, #3A167A 100%);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 4px 25px var(--purple-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--gold-glow);
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-home-link:hover {
  color: var(--gold-accent);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: 75px;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-title {
    font-size: 22px;
  }

  .download-cta-btn {
    width: 100%;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}
