:root {
  color-scheme: dark;
  --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Times New Roman', Times, Georgia, serif;
  --bg-dark: #070a11;
  --bg-card: #0f172a;
  --primary-orange: #ff5500;
  --primary-orange-hover: #e04b00;
  --on-orange: #070a11;
  --accent-blue: #93b9ec;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-dark: #1e293b;
  --page-gutter: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-arabic);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Serif Font Utility for Brand & Latin Headings */
.font-serif-brand { font-family: var(--font-serif); }

/* Navbar & Header Styling */
header {
  position: sticky;
  z-index: 10;
  top: 0;
  background-color: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand-logo-text {
  color: var(--primary-orange);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.nav-links { display: flex; gap: 20px; margin-inline-start: auto; }

.nav-links a { color: var(--text-muted); font-weight: 500; text-decoration: none; }

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

/* Primary Button Styling. Dark text, because white on this orange is hard to read. */
.btn-ping-primary,
.btn-ping-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 22px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.btn-ping-primary {
  background-color: var(--primary-orange);
  border: 0;
  color: var(--on-orange);
  transition: all 0.2s ease-in-out;
}

.btn-ping-primary:hover:not(:disabled) {
  background-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 85, 0, 0.3);
}

.btn-ping-primary:disabled { background-color: var(--border-dark); color: var(--text-muted); cursor: default; }

.btn-ping-secondary {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-main);
}

.btn-ping-secondary:hover { border-color: var(--accent-blue); }

.nav .btn-ping-primary { min-height: 40px; padding: 4px 16px; }

/* Hero */
.hero { padding-block: 64px 48px; text-align: center; }

.trust-badge-accent {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 14px;
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: 999px;
  color: var(--primary-orange);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 900;
  line-height: 1.2;
}

.hero p {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: clamp(17px, 2.4vw, 20px);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding-block: 56px; }

.section-title { font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; line-height: 1.3; text-align: center; }

.section-lead { max-width: 620px; margin: 10px auto 36px; color: var(--text-muted); text-align: center; }

/* Interactive Sandbox (Pager vs Mobile Mockups) */
.sandbox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sandbox-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 16px;
}

.sandbox-label { color: var(--text-muted); font-weight: 700; text-align: center; }

.sandbox-stage { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 340px; }

.pager-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(220px, 100%);
  padding: 20px;
  background: linear-gradient(145deg, #18181b, #09090b);
  border: 2px solid #27272a;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pager-led {
  width: 14px;
  height: 14px;
  background-color: #3f3f46;
  border-radius: 50%;
}

.pager-led-screen {
  width: 100%;
  padding: 16px 8px;
  background-color: #041208;
  border: 2px solid #14532d;
  border-radius: 8px;
  color: #22c55e;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  direction: ltr;
}

.pager-vibrate { animation: pagerShaker 0.3s cubic-bezier(.36,.07,.19,.97) infinite; }

@keyframes pagerShaker {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.led-indicator-active {
  background-color: #ef4444 !important;
  box-shadow: 0 0 12px #ef4444, 0 0 20px #ef4444;
}

/* Phone Display Mockup */
.phone-mockup-frame {
  position: relative;
  width: min(230px, 100%);
  height: 340px;
  overflow: hidden;
  padding: 44px 10px 16px;
  background-color: #020617;
  border: 6px solid #334155;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.phone-clock {
  position: absolute;
  inset-block-start: 18px;
  inset-inline: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  direction: ltr;
}

.push-notification-banner {
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(147, 185, 236, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.push-notification-banner[data-visible="true"] { opacity: 1; transform: none; }

.push-title { font-size: 14px; font-weight: 800; }

.push-body { color: var(--text-muted); font-size: 13px; line-height: 1.4; }

.phone-locked { margin-top: 56px; color: var(--text-muted); font-size: 14px; text-align: center; }

.sandbox-controls { margin-top: 20px; text-align: center; }

.sandbox-status { min-height: 26px; margin-top: 10px; color: var(--text-muted); }

/* Cards & Grid Containers */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.ping-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  transition: border-color 0.2s ease;
}

.ping-card:hover { border-color: rgba(255, 85, 0, 0.4); }

.info-card { padding: 22px; }

.info-card h3 { font-size: 19px; font-weight: 800; }

.info-card p { margin-top: 6px; color: var(--text-muted); }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  color: var(--on-orange);
  font-weight: 900;
}

/* Questions */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-inline: auto; }

.faq details { padding: 16px 20px; }

.faq summary { cursor: pointer; font-weight: 700; }

.faq p { margin-top: 10px; color: var(--text-muted); }

/* Closing */
.closing { padding: 40px 20px; text-align: center; }

.closing h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }

.closing p { margin: 8px 0 22px; color: var(--text-muted); }

footer { padding-block: 28px; border-top: 1px solid var(--border-dark); color: var(--text-muted); text-align: center; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-orange); }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn-ping-primary { margin-inline-start: auto; }
  .hero { padding-block: 44px 28px; }
  .section { padding-block: 40px; }
  .sandbox { grid-template-columns: minmax(0, 1fr); }
  .sandbox-stage { min-height: 0; }
  .hero-actions a { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pager-vibrate { animation: none; }
  .btn-ping-primary, .ping-card, .push-notification-banner { transition: none; }
  .btn-ping-primary:hover:not(:disabled) { transform: none; }
}

/* Language switch */
html[lang="en"] body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.lang-toggle {
  min-height: 40px;
  padding: 4px 14px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.lang-toggle:hover { border-color: var(--accent-blue); }

/* Social proof */
.proof-banner {
  padding: 12px var(--page-gutter);
  background: var(--primary-orange);
  color: var(--on-orange);
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 900;
  text-align: center;
}

/* The one plan */
.plan-card { max-width: 520px; margin-inline: auto; padding: 28px 24px; border: 2px solid var(--primary-orange); text-align: center; }

.plan-card:hover { border-color: var(--primary-orange); }

.plan-card h3 { font-size: 22px; font-weight: 800; }

.plan-price { margin-top: 8px; color: var(--primary-orange); font-size: clamp(42px, 8vw, 56px); font-weight: 900; line-height: 1.2; }

.plan-price small { color: var(--text-main); font-size: 17px; font-weight: 700; }

.plan-vat { color: var(--text-muted); }

.plan-features { display: grid; gap: 10px; margin-block: 22px; list-style: none; text-align: start; }

.plan-features li { display: flex; gap: 10px; }

.plan-features li::before { content: "\2713"; color: var(--primary-orange); font-weight: 900; }

.plan-card .btn-ping-primary { width: 100%; }

/* WhatsApp help */
.support-float {
  position: fixed;
  z-index: 15;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #06281a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

[hidden] { display: none !important; }

footer { padding-block-end: 80px; }

/* Hero animations: the ringing bell and the vibrating phone */
.hero-motion { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px; margin-bottom: 20px; }

.ping-motion-wrapper { display: inline-flex; align-items: center; justify-content: center; padding: 20px; }

.bell-container { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; }

.animated-bell {
  z-index: 2;
  width: 48px;
  height: 48px;
  animation: bellRing 2s infinite ease-in-out;
  transform-origin: top center;
  filter: drop-shadow(0 0 12px rgba(255, 85, 0, 0.4));
}

.sound-wave {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  opacity: 0;
  animation: waveOut 2s infinite ease-out;
}

.wave-2 { animation-delay: 0.6s; }

@keyframes bellRing {
  0% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-15deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  25% { transform: rotate(5deg); }
  30% { transform: rotate(-5deg); }
  35% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes waveOut {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.phone-container { position: relative; display: flex; align-items: center; justify-content: center; width: 70px; height: 110px; }

.animated-phone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
  height: 96px;
  padding: 6px;
  background: var(--bg-card);
  border: 2px solid var(--primary-orange);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.25);
  animation: phoneVibrate 1.8s infinite ease-in-out;
}

.phone-notch { width: 16px; height: 3px; margin-bottom: 8px; background: #334155; border-radius: 2px; }

.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #020617;
  border: 1px solid rgba(147, 185, 236, 0.15);
  border-radius: 8px;
}

.ping-screen-logo {
  color: var(--primary-orange);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 85, 0, 0.5);
}

.signal-dot {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 6px #00e676;
  animation: blinkDot 1.2s infinite alternate;
}

.pulse-ring {
  position: absolute;
  width: 60px;
  height: 100px;
  border: 1px solid var(--primary-orange);
  border-radius: 18px;
  opacity: 0;
  animation: phonePulse 1.8s infinite ease-out;
}

@keyframes phoneVibrate {
  0% { transform: translate(0, 0) rotate(0deg); }
  2% { transform: translate(-2px, 1px) rotate(-1deg); }
  4% { transform: translate(2px, -1px) rotate(1deg); }
  6% { transform: translate(-2px, -1px) rotate(-1deg); }
  8% { transform: translate(2px, 1px) rotate(1deg); }
  10% { transform: translate(-1px, 1px) rotate(0deg); }
  12% { transform: translate(1px, -1px) rotate(0deg); }
  14% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes phonePulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes blinkDot {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .animated-bell, .animated-phone, .sound-wave, .pulse-ring, .signal-dot { animation: none; }
}

/* Labels under the hero animations, and the feature cards that use the same animations */
.motion-item { display: flex; flex-direction: column; align-items: center; min-width: 110px; }

.motion-item .ping-motion-wrapper { min-height: 150px; }

.motion-caption { color: var(--text-main); font-size: 15px; font-weight: 700; }

.alert-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }

.alert-card { display: flex; align-items: center; gap: 12px; padding: 16px 22px 16px 16px; border-color: rgba(255, 85, 0, 0.35); }

html[dir="rtl"] .alert-card { padding: 16px 16px 16px 22px; }

.alert-card .ping-motion-wrapper { flex-shrink: 0; width: 110px; }

.alert-card h3 { font-size: 19px; font-weight: 800; }

.alert-card p { margin-top: 6px; color: var(--text-muted); }

@media (max-width: 860px) {
  .alert-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .alert-card .ping-motion-wrapper { width: 92px; padding: 12px 0; }
}
