/* ===== Nashra Landing Page — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #191A1A;
  --bg-gradient: linear-gradient(180deg, #191A1A 0%, #0f1010 100%);
  --card-bg: #202222;
  --surface: #2A2C2C;
  --surface-light: #333636;
  --text-primary: #E8E8E6;
  --text-secondary: #B3B3B3;
  --text-muted: #808080;
  --accent: #2D9CDB;
  --accent-light: #56B0E3;
  --accent-dark: #1A7BB5;
  --accent-glow: rgba(45, 156, 219, 0.15);
  --accent-glow-strong: rgba(45, 156, 219, 0.25);
  --success: #4CAF50;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(45, 156, 219, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(45, 156, 219, 0.2);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(45, 156, 219, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(45, 156, 219, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes svgShimmer {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

@keyframes svgSlideUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(25, 26, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 50px;
  width: auto;
  filter: brightness(1);
  transition: var(--transition);
}

.navbar-logo:hover {
  filter: brightness(1.2);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

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

.navbar-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition);
}

.navbar-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.navbar-cta::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(45, 156, 219, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(45, 156, 219, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(45, 156, 219, 0.2);
  margin-bottom: 28px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--surface-light);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.store-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  text-align: right;
}

.store-btn-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.store-btn-text span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero SVG Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.hero-svg-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.phone-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-soft));
  animation: float 6s ease-in-out infinite;
}

.svg-anim-featured {
  animation: svgShimmer 4s ease-in-out infinite;
}

.svg-anim-list-1 {
  animation: svgSlideUp 1s ease 0.5s both;
}

.svg-anim-list-2 {
  animation: svgSlideUp 1s ease 0.7s both;
}

.svg-anim-float {
  animation: float 4s ease-in-out infinite;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--surface);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 120px 0;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(45, 156, 219, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--accent-glow-strong);
  transform: scale(1.05);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(32, 34, 34, 0.3) 50%, var(--bg) 100%);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works-header .section-subtitle {
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  right: 16.66%;
  width: 66.66%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--surface-light), var(--surface-light), transparent);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--card-bg);
  border: 2px solid var(--surface-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-card:hover .step-number {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 24px rgba(45, 156, 219, 0.15);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== APP PREVIEW SECTION ===== */
.app-preview {
  padding: 120px 0;
  position: relative;
}

.app-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.preview-content {
  order: 2;
}

.preview-visual {
  order: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.preview-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.preview-svg-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.article-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-soft));
}

.svg-anim-article-title {
  animation: svgSlideUp 1s ease 0.2s both;
}

.svg-anim-article-meta {
  animation: svgSlideUp 1s ease 0.4s both;
}

.svg-anim-highlight-box {
  animation: svgSlideUp 1s ease 0.6s both;
}

.svg-anim-paragraph {
  animation: svgSlideUp 1s ease 0.8s both;
}

.preview-features-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.preview-features-list li svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 120px 0;
}

.cta-box {
  background: var(--card-bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(45, 156, 219, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--surface);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-dev-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.footer-dev-logo:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-svg-wrapper {
    max-width: 280px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-grid::before {
    display: none;
  }

  .app-preview .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .preview-content {
    order: 1;
  }

  .preview-visual {
    order: 2;
  }

  .preview-content .section-subtitle {
    margin: 0 auto;
  }

  .preview-features-list {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .navbar-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile menu */
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(25, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--surface);
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

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

  .hero-svg-wrapper {
    max-width: 240px;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .cta-box {
    padding: 48px 24px;
  }
}