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

:root {
  --primary: #25D366;
  --primary-dark: #128C7E;
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --border: #2a2a3a;
  --green: #25D366;
  --blue: #5b8def;
  --purple: #a855f7;
  --orange: #f59e0b;
  --red: #ef4444;
  --wa-bg: #0b141a;
  --wa-bubble-in: #1f2c34;
  --wa-bubble-out: #005c4b;
  --radius: 16px;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4em;
  font-weight: 700;
}

.brand-icon { font-size: 1.3em; }
.brand-name { color: var(--primary); }

.brand-tag {
  font-size: 0.45em;
  background: var(--primary);
  color: #000;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}

/* ─── Hero ─── */
.hero {
  padding: 120px 24px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2em;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2em;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85em;
  color: var(--text-dim);
}

/* ─── Sections ─── */
.section {
  display: none;
  padding: 40px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section.active-section { display: block; }

/* ─── Demo Section ─── */
.demo-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.demo-features h2 {
  font-size: 1.8em;
  margin-bottom: 12px;
}

.demo-features > p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

.try-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.suggestion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85em;
  transition: all 0.2s;
}

.suggestion:hover {
  border-color: var(--primary);
  background: rgba(37, 211, 102, 0.1);
}

.demo-vs h3 {
  margin-bottom: 16px;
  font-size: 1.1em;
}

.vs-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 0.85em;
}

.vs-feature { font-weight: 600; }
.vs-them { color: var(--red); text-align: center; }
.vs-us { color: var(--green); text-align: center; }

/* ─── WhatsApp Phone Simulator ─── */
.whatsapp-phone {
  position: sticky;
  top: 84px;
}

.phone-frame {
  width: 370px;
  height: 700px;
  background: var(--wa-bg);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 0 3px #333, 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.phone-notch {
  height: 32px;
  background: #000;
  border-radius: 0 0 20px 20px;
  margin: 0 80px;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #1f2c34;
}

.wa-back { font-size: 1.2em; opacity: 0.7; }

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.wa-info { flex: 1; }
.wa-name { font-size: 0.95em; font-weight: 600; }
.wa-status { font-size: 0.75em; color: var(--primary); }
.wa-actions { opacity: 0.5; }

.wa-chat {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-date-badge {
  text-align: center;
  font-size: 0.75em;
  color: var(--text-dim);
  background: rgba(255,255,255,0.08);
  padding: 4px 16px;
  border-radius: 8px;
  align-self: center;
  margin: 8px 0;
}

.wa-message {
  display: flex;
  max-width: 85%;
}

.wa-message.user { align-self: flex-end; }
.wa-message.bot { align-self: flex-start; }

.wa-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88em;
  line-height: 1.5;
  position: relative;
  white-space: pre-line;
}

.wa-message.bot .wa-bubble {
  background: var(--wa-bubble-in);
  border-top-right-radius: 4px;
}

.wa-message.user .wa-bubble {
  background: var(--wa-bubble-out);
  border-top-left-radius: 4px;
}

.wa-time {
  font-size: 0.65em;
  color: rgba(255,255,255,0.45);
  text-align: left;
  margin-top: 4px;
  direction: ltr;
}

.wa-typing {
  align-self: flex-start;
  max-width: 85%;
}

.wa-typing .wa-bubble {
  background: var(--wa-bubble-in);
  border-top-right-radius: 4px;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.wa-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1f2c34;
}

.wa-emoji {
  background: none;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
}

.wa-input {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9em;
  outline: none;
}

.wa-input::placeholder { color: var(--text-dim); }

.wa-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.wa-send:hover { transform: scale(1.08); }

/* ─── Dashboard Section ─── */
.dash-container h2 {
  font-size: 1.8em;
  margin-bottom: 8px;
}

.dash-subtitle {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.time-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.time-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85em;
  transition: all 0.2s;
}

.time-btn.active, .time-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-card-icon { font-size: 1.5em; margin-bottom: 8px; }

.stat-card-value {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-card.green .stat-card-value { color: var(--green); }
.stat-card.blue .stat-card-value { color: var(--blue); }
.stat-card.purple .stat-card-value { color: var(--purple); }
.stat-card.orange .stat-card-value { color: var(--orange); }

.stat-card-label {
  font-size: 0.85em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat-card-change {
  font-size: 0.78em;
  color: var(--text-dim);
}

.stat-card-change.positive { color: var(--green); }

.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.dash-panel h3 {
  margin-bottom: 16px;
  font-size: 1.05em;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  transition: background 0.2s;
}

.activity-item:hover { background: rgba(255,255,255,0.06); }

.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  flex-shrink: 0;
}

.activity-info { flex: 1; min-width: 0; }

.activity-name {
  font-size: 0.88em;
  font-weight: 600;
  margin-bottom: 2px;
}

.activity-detail {
  font-size: 0.78em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-amount {
  font-weight: 600;
  font-size: 0.88em;
  color: var(--green);
  white-space: nowrap;
}

.activity-time {
  font-size: 0.75em;
  color: var(--text-dim);
  white-space: nowrap;
}

.activity-badge {
  font-size: 0.72em;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  white-space: nowrap;
}

.activity-badge.success { background: rgba(37, 211, 102, 0.15); color: var(--green); }
.activity-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

/* ─── Pricing Section ─── */
.pricing-container {
  text-align: center;
}

.pricing-container h2 {
  font-size: 1.8em;
  margin-bottom: 8px;
}

.pricing-subtitle {
  color: var(--text-dim);
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.15);
  transform: scale(1.05);
}

.pricing-card.featured:hover { transform: scale(1.08); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-badge.free-badge {
  background: var(--blue);
  color: #fff;
}

.pricing-name {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 0.35em;
  color: var(--text-dim);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: right;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88em;
}

.pricing-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-btn:hover {
  background: var(--bg-card-hover);
}

.featured-btn {
  background: var(--primary) !important;
  color: #000 !important;
  border-color: var(--primary) !important;
}

.featured-btn:hover {
  background: #1fba59 !important;
}

.pricing-note {
  color: var(--text-dim);
  font-size: 0.82em;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.footer-content {
  color: var(--text-dim);
  font-size: 0.85em;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 2em; }
  .demo-container { grid-template-columns: 1fr; }
  .whatsapp-phone { position: static; display: flex; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-panels { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 1.6em; }
  .hero-stats { gap: 24px; }
  .stats-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 100%; max-width: 370px; }
}
