/* style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #FF8E36;
  --orange-light: #FF9E2C;
  --orange-dark: #CC7000;
  --orange-glow: rgba(255, 140, 0, 0.15);
  --bg: #0B0B09;
  --bg2: #111110;
  --bg3: #1A1A17;
  --surface: #1E1E1B;
  --surface2: #252522;
  --border: rgba(255, 255, 255, 0.07);
  --text: #F2F0E8;
  --text-muted: #8A8880;
  --text-dim: #5A5855;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  /* Theme-adaptive values (dark defaults) */
  --nav-bg: rgba(11, 11, 9, 0.85);
  --nav-bg-scroll: rgba(11, 11, 9, 0.97);
  --nav-menu-bg: #111110;
  --orb1-color: #FF8C00;
  --orb2-color: #AA4400;
  --grid-line: rgba(255, 255, 255, 0.018);
  --phone-frame-start: #2A2A25;
  --phone-frame-end: #181816;
  --phone-shadow: rgba(0, 0, 0, 0.65);
  --phone-border-outer: rgba(255, 255, 255, 0.07);
  --phone-border-inner: rgba(255, 255, 255, 0.04);
  --float-shadow: rgba(0, 0, 0, 0.4);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --card-hover-shadow: rgba(0, 0, 0, 0.3);
  --card-border: rgba(255, 140, 0, 0.18);
  --featured-gradient: rgba(255, 140, 0, 0.07);
  --download-gradient: rgba(255, 140, 0, 0.04);
  --download-orb: rgba(255, 140, 0, 0.1);
  --cta-text: #ffffff;
  --green: #00C853;
  --blue: #2196F3;
  --pin-orange: #FF8C00;
  --pin-secondary: #FF6F00;
  --pin-tertiary: #CC5A00;
  --btn-shadow: 0 4px 14px rgba(255, 140, 0, 0.3);
  --btn-hover-shadow: 0 8px 24px rgba(255, 140, 0, 0.5);
  --btn-outline-border: var(--border);
  --btn-outline-hover-border: rgba(255, 255, 255, 0.15);
  --logo_bg:#ffffff;

}

/* ===== LIGHT MODE (WARM SLATE / GREIGE REDESIGN) ===== */
[data-theme="light"] {
  --orange: #FF8E36;
  --orange-light: #FF9E2C;
  --orange-dark: #B86200;
  --orange-glow: rgba(230, 126, 34, 0.12);
  --bg: #FAF8F5;                 /* رمادي دافئ ناعم يمنع البرودة البصرية */
  --bg2: #F3ECE0;                /* درجة أعمق للخلفيات الثانوية لتبين الأقسام */
  --bg3: #FFF0DE;                /* حاوية الخريطة الدافئة لربط الألوان */
  --surface: #FFFFFF;            /* كروت بيضاء ناصعة تبرز بوضوح فوق الخلفية */
  --surface2: #F5EFEB;           /* أسطح تفاعلية دافئة */
  --border: #E6DFD3;             /* حدود ناعمة متناسقة مع التوجه اللوني للبيج والصلصال */
  --card-border: var(--border);
  --text: #2D2722;               /* فحم بني دافئ ومريح جداً للقراءة */
  --text-muted: #6E655C;         /* رمادي بني للنصوص الفرعية */
  --text-dim: #968B80;           /* وضوح كافي لحالات التعطيل */
  --nav-bg: rgba(250, 248, 245, 0.88);
  --nav-bg-scroll: rgba(250, 248, 245, 0.97);
  --nav-menu-bg: #F3ECE0;
  --orb1-color: rgba(255, 142, 54, 0.12);
  --orb2-color: rgba(45, 39, 34, 0.03);
  --grid-line: rgba(45, 39, 34, 0.02);
  --phone-frame-start: #FFFFFF;
  --phone-frame-end: #F4EADB;
  --phone-shadow: rgba(45, 39, 34, 0.08);
  --phone-border-outer: rgba(45, 39, 34, 0.06);
  --phone-border-inner: rgba(255, 255, 255, 0.20);
  --float-shadow: rgba(45, 39, 34, 0.04);
  /* ظلال ناعمة للغاية تعطي عمق حقيقي للكروت فوق الأرضية الدافئة دون تشتيت */
  --card-shadow: 0 10px 30px rgba(45, 39, 34, 0.02), 0 1px 3px rgba(45, 39, 34, 0.02);
  --card-hover-shadow: 0 20px 40px rgba(45, 39, 34, 0.06), 0 1px 3px rgba(45, 39, 34, 0.02);
  --featured-gradient: rgba(255, 142, 54, 0.04);
  --download-gradient: #FFFFFF;
  --download-orb: rgba(255, 142, 54, 0.05);
  --cta-text: #FFFFFF;
  --green: #2E7D32;
  --blue: #1565C0;
  --pin-orange: #E67E22;
  --pin-secondary: #D35400;
  --pin-tertiary: #F39C12;
  --btn-shadow: 0 4px 14px rgba(255, 142, 54, 0.18);
  --btn-hover-shadow: 0 8px 24px rgba(255, 142, 54, 0.35);
  --btn-outline-border: #E6DFD3;
  --btn-outline-hover-border: #CFC5B4;
  --logo_bg: #ffffff00;
  color-scheme: light;
}

/* تعديل خلفية الخريطة في الوضع الفاتح لرسم خطوط الشوارع بلون تفحمي خفيف بدلاً من الأبيض المختفي */
[data-theme="light"] .map-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='220' viewBox='0 0 400 220'%3E%3Cpath d='M-20,180 C 100,100 200,240 420,60' fill='none' stroke='%232D2722' stroke-width='4' opacity='0.07' /%3E%3Cpath d='M-20,180 C 100,100 200,240 420,60' fill='none' stroke='%232D2722' stroke-width='6' opacity='0.02' /%3E%3Cline x1='40' y1='0' x2='40' y2='220' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='120' y1='0' x2='120' y2='220' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='200' y1='0' x2='200' y2='220' stroke='%232D2722' stroke-width='2' opacity='0.07' /%3E%3Cline x1='280' y1='0' x2='280' y2='220' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='360' y1='0' x2='360' y2='220' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='0' y1='30' x2='400' y2='30' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='0' y1='90' x2='400' y2='90' stroke='%232D2722' stroke-width='2' opacity='0.07' /%3E%3Cline x1='0' y1='150' x2='400' y2='150' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='0' y1='200' x2='400' y2='200' stroke='%232D2722' stroke-width='1.5' opacity='0.05' /%3E%3Cline x1='80' y1='0' x2='80' y2='90' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3Cline x1='160' y1='90' x2='160' y2='220' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3Cline x1='240' y1='0' x2='240' y2='150' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3Cline x1='320' y1='90' x2='320' y2='220' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3Cline x1='40' y1='60' x2='200' y2='60' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3Cline x1='200' y1='120' x2='360' y2='120' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3Cline x1='120' y1='180' x2='280' y2='180' stroke='%232D2722' stroke-width='1' opacity='0.03' /%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

nav.scrolled {
  background: var(--nav-bg-scroll);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 50px;
  background-color: var(--logo_bg);
  height: 50px;
  border-radius: 20%;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--orange) !important;
  color: var(--cta-text) !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 700 !important;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: scale(1.08);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orb1-color) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--orb2-color) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float 11s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 50px;
  padding: 6px 16px 6px 10px;
  font-size: 13px;
  color: var(--orange-light);
  margin-bottom: 22px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title .accent {
  color: var(--orange);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  animation: underline 0.5s 0.9s ease forwards;
}

@keyframes underline {
  to { transform: scaleX(1); }
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeUp 0.6s 0.2s ease both;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--cta-text);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--btn-outline-border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--surface2);
  border-color: var(--btn-outline-hover-border);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  animation: fadeUp 0.6s 0.4s ease both;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* PHONE VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.phone-wrap {
  position: relative;
  width: 300px;
}

.phone-outer {
  background: linear-gradient(145deg, var(--phone-frame-start), var(--phone-frame-end));
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px var(--phone-shadow), 0 0 0 1px var(--phone-border-outer), inset 0 0 0 1px var(--phone-border-inner);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
  background: var(--bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top;
}

.phone-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 32px var(--float-shadow);
}

.phone-float-1 {
  top: 90px;
  left: -115px;
  animation: floatBadge 4s ease-in-out infinite;
}

.phone-float-2 {
  bottom: 110px;
  right: -105px;
  animation: floatBadge 4s 2s ease-in-out infinite;
}

.float-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.float-orange {
  background: rgba(255, 140, 0, 0.15);
}

.float-green {
  background: rgba(0, 200, 100, 0.15);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* SECTIONS */
section {
  padding: 96px 5%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.85;
}

/* FEATURES */
#features {
  background: var(--bg2);
}

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

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 140, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--card-hover-shadow);
}

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

.feature-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--featured-gradient) 0%, var(--surface) 60%);
  border-color: rgba(255, 140, 0, 0.18);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 140, 0, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  position: relative;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Tajawal', sans-serif;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* HOW */
#how {
  background: var(--bg);
}

.how-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.step-item {
  display: flex;
  gap: 18px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 52px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 140, 0, 0.35), transparent);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body {
  padding-bottom: 32px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.how-visual {
  position: relative;
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map-bg {
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='220' viewBox='0 0 400 220'%3E%3Cpath d='M-20,180 C 100,100 200,240 420,60' fill='none' stroke='%23ffffff' stroke-width='6' opacity='0.45' /%3E%3Cpath d='M-20,180 C 100,100 200,240 420,60' fill='none' stroke='%23ffffff' stroke-width='8' opacity='0.15' /%3E%3Cline x1='40' y1='0' x2='40' y2='220' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='120' y1='0' x2='120' y2='220' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='200' y1='0' x2='200' y2='220' stroke='%23ffffff' stroke-width='3' opacity='0.6' /%3E%3Cline x1='280' y1='0' x2='280' y2='220' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='360' y1='0' x2='360' y2='220' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='0' y1='30' x2='400' y2='30' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='0' y1='90' x2='400' y2='90' stroke='%23ffffff' stroke-width='3' opacity='0.6' /%3E%3Cline x1='0' y1='150' x2='400' y2='150' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='0' y1='200' x2='400' y2='200' stroke='%23ffffff' stroke-width='2' opacity='0.5' /%3E%3Cline x1='80' y1='0' x2='80' y2='90' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3Cline x1='160' y1='90' x2='160' y2='220' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3Cline x1='240' y1='0' x2='240' y2='150' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3Cline x1='320' y1='90' x2='320' y2='220' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3Cline x1='40' y1='60' x2='200' y2='60' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3Cline x1='200' y1='120' x2='360' y2='120' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3Cline x1='120' y1='180' x2='280' y2='180' stroke='%23ffffff' stroke-width='1.2' opacity='0.3' /%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-color: var(--bg3);
  border-radius: var(--radius);
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  filter: drop-shadow(0px 4px 6px rgba(30, 27, 21, 0.15));
}

.map-pin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-pin-icon span {
  transform: rotate(45deg);
  font-size: 13px;
}

.pin-orange {
  background: var(--pin-orange);
}

.pin-green {
  background: var(--pin-secondary);
}

.pin-blue {
  background: var(--pin-tertiary);
}

.map-pin-label {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.p1 { top: 30%; left: 28%; }
.p2 { top: 52%; left: 57%; }
.p3 { top: 18%; left: 66%; }

.map-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.map-stat {
  background: var(--bg3);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.map-stat-val {
  font-family: 'Tajawal', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}

.map-stat-key {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ALERTS */
#alerts {
  background: var(--bg2);
}

.alerts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.alert-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}

.alert-item.triggered {
  border-color: rgba(255, 140, 0, 0.4);
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.06), var(--surface));
}

.alert-item.triggered::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.alert-emoji {
  font-size: 22px;
}

.alert-info {
  flex: 1;
}

.alert-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-condition {
  font-size: 12px;
  color: var(--text-muted);
}

.alert-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.status-active {
  background: rgba(255, 140, 0, 0.12);
  color: var(--orange);
}

.status-triggered {
  background: rgba(0, 200, 100, 0.12);
  color: var(--green);
}

.status-disabled {
  background: var(--surface2);
  color: var(--text-dim);
}

.alert-item.disabled-card {
  opacity: 0.7;
}

.alert-item.disabled-card .alert-name,
.alert-item.disabled-card .alert-condition {
  color: var(--text-dim);
}

/* SCREENSHOTS */
#screenshots {
  background: var(--bg);
  overflow: hidden;
}

.screenshots-header {
  text-align: center;
  margin-bottom: 56px;
}

.screenshots-header .section-desc {
  margin: 0 auto;
}

.screens-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screens-row::-webkit-scrollbar {
  height: 4px;
}

.screens-row::-webkit-scrollbar-track {
  background: transparent;
}

.screens-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.screen-item {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
}

.screen-frame {
  background: linear-gradient(145deg, var(--phone-frame-start), var(--phone-frame-end));
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 20px 50px var(--phone-shadow), 0 0 0 1px var(--phone-border-outer);
}

.screen-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: var(--bg3);
}

.screen-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.screen-label {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* DOWNLOAD */
#download {
  background: var(--bg);
  padding: 110px 5%;
}

.download-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.download-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--download-gradient) 100%);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.download-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--download-orb) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.2;
}

.download-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

.download-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.dl-btn-android {
  background: var(--orange);
  color: var(--cta-text);
  box-shadow: var(--btn-shadow);
}

.dl-btn-android:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

.dl-btn-ios {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--btn-outline-border);
}

.dl-btn-ios:hover {
  background: var(--surface);
  border-color: var(--btn-outline-hover-border);
  transform: translateY(-2px);
}

.dl-btn-github {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--btn-outline-border);
}

.dl-btn-github:hover {
  color: var(--text);
  border-color: var(--btn-outline-hover-border);
}

.dl-icon {
  font-size: 20px;
}

.download-note {
  font-size: 13px;
  color: var(--text-dim);
}

.download-note a {
  color: var(--orange);
  text-decoration: none;
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  width: 50px;
  background-color: var(--logo_bg);
  height: 50px;
  border-radius: 20%;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 5%;
}

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

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

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

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

  .hero-visual {
    order: -1;
  }

  .phone-float-1,
  .phone-float-2 {
    display: none;
  }

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

  .feature-card.featured {
    grid-column: span 1;
  }

  .how-content,
  .alerts-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .download-card {
    padding: 44px 22px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--nav-menu-bg);
    border-bottom: 1px solid var(--border);
    padding: 18px;
    gap: 14px;
  }
}

@media(max-width:600px) {
  section {
    padding: 56px 5%;
  }

  .download-btns {
    flex-direction: column;
    align-items: center;
  }

  .dl-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .phone-wrap {
    width: 220px;
  }
}