/* ============================
   NOVA — styles.css
   Dark Indigo / Violet Theme
   ============================ */

:root {
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;
  --indigo-300: #a5b4fc;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --sky-400:    #38bdf8;
  --emerald-400:#34d399;

  --bg-base:    #07071a;
  --bg-surface: #0d0d26;
  --bg-card:    #111128;
  --bg-card-2:  #161638;

  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;

  --border:       rgba(255,255,255,.07);
  --border-light: rgba(255,255,255,.12);
  --border-accent:rgba(99,102,241,.35);

  --shadow-glow: 0 0 60px rgba(99,102,241,.18), 0 20px 40px rgba(0,0,0,.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,.35);
  --shadow-btn:  0 8px 24px rgba(99,102,241,.4);

  --radius:    .85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --transition: .22s cubic-bezier(.22,.61,.36,1);
  --transition-slow: .4s cubic-bezier(.22,.61,.36,1);

  --display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-base);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
::selection { background: var(--indigo-600); color: white; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
[dir="rtl"] { font-family: 'Segoe UI', Tahoma, 'Arabic Typesetting', Arial, sans-serif; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { padding: .95rem 2.1rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--violet-500));
  color: #fff;
  box-shadow: var(--shadow-btn);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(99,102,241,.55);
  opacity: .92;
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text-1);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

/* ============ LOGIN MODAL ============ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7,7,26,.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.login-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.login-modal {
  background: var(--bg-card-2);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 80px rgba(99,102,241,.2), 0 30px 60px rgba(0,0,0,.5);
  transform: translateY(20px) scale(.97);
  transition: transform var(--transition-slow);
}
.login-overlay.open .login-modal {
  transform: translateY(0) scale(1);
}
.login-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
[dir="rtl"] .login-close { right: auto; left: 1.25rem; }
.login-close:hover { background: rgba(255,255,255,.13); color: var(--text-1); }
.login-close svg { width: 16px; height: 16px; }

.login-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.75rem; }
.login-brand .logo-text { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--text-1); }

.login-title { font-size: 1.65rem; font-weight: 700; margin-bottom: .35rem; letter-spacing: -.03em; }
.login-sub { color: var(--text-2); font-size: .95rem; margin-bottom: 1.75rem; }

.google-signin-area { margin: .5rem 0; }
.btn-google-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius);
  padding: .82rem 1.25rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.btn-google-signin:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.btn-google-signin:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
/* Button states */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(66,133,244,.25);
  border-top-color: #4285F4;
  border-radius: 50%;
  flex-shrink: 0;
  animation: gsi-spin .7s linear infinite;
}
@keyframes gsi-spin { to { transform: rotate(360deg); } }

.btn-google-signin.loading {
  pointer-events: none;
  opacity: .8;
}
.btn-google-signin.loading .btn-spinner   { display: block; }
.btn-google-signin.loading .btn-google-icon,
.btn-google-signin.loading .btn-google-text { opacity: 0; }

.btn-google-signin.success {
  pointer-events: none;
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}
.btn-google-signin.success .btn-spinner   { display: none; }
.btn-google-signin.success .btn-google-icon { opacity: 0; }
.btn-google-signin.success .btn-google-text { opacity: 1; color: #16a34a; }

.login-message {
  min-height: 1.5rem;
  font-size: .82rem;
  text-align: center;
  padding: .35rem .5rem 0;
  border-radius: 6px;
  transition: opacity .2s;
}
.login-message:empty { opacity: 0; }
.login-message.error { color: #dc2626; }
.login-message.info  { color: var(--indigo-400); }

.login-footer-text {
  text-align: center;
  font-size: .85rem;
  color: var(--text-3);
  margin-top: 1.25rem;
}
.login-register-link { color: var(--indigo-400); font-weight: 500; }
.login-register-link:hover { color: var(--indigo-300); }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,26,.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 68px; }

.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--indigo-600), var(--violet-500));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(99,102,241,.45);
  animation: logo-glow 4s ease-in-out infinite;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-mark-sm { width: 28px; height: 28px; border-radius: 8px; }
.logo-mark-sm svg { width: 16px; height: 16px; }
.logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  padding: .5rem 1rem;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: rgba(255,255,255,.07); color: var(--text-1); }

.header-actions { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.lang-switcher { display: flex; background: rgba(255,255,255,.05); border-radius: 100px; padding: 3px; border: 1px solid var(--border); }
.lang-btn {
  padding: .32rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}
.lang-btn.active { background: rgba(255,255,255,.1); color: var(--text-1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 32px; padding: 4px; }
.nav-toggle span { display: block; height: 2px; background: var(--text-2); border-radius: 2px; transition: all var(--transition); }
.header-cta { display: inline-flex; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  padding: 6rem 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.28) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: glow-drift 18s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
  bottom: -100px; left: 5%;
  animation: glow-drift 12s ease-in-out infinite reverse;
  animation-delay: -4s;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { display: flex; flex-direction: column; align-items: flex-start; }
[dir="rtl"] .hero-content { align-items: flex-end; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  padding: .42rem 1.05rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--indigo-300);
  margin-bottom: 1.75rem;
  animation: fade-up .55s cubic-bezier(.22,.61,.36,1) .1s both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--indigo-400);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(129,140,248,.8);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 1.4rem;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) .25s both;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--indigo-400) 0%, var(--violet-400) 50%, var(--sky-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(.97rem, 1.6vw, 1.13rem);
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) .4s both;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) .55s both;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) .7s both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .86rem;
  color: var(--text-3);
  font-weight: 500;
}
.trust-item svg { color: var(--emerald-400); flex-shrink: 0; }

/* ---- Store Badges (hero) ---- */
.store-badges {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) .85s both;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.13);
  border-radius: 12px;
  padding: .65rem 1.15rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  min-width: 148px;
}
.store-badge:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(99,102,241,.5);
  transform: translateY(-2px);
}
.store-badge svg { flex-shrink: 0; opacity: .9; }
.store-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
[dir="rtl"] .store-badge-text { text-align: right; }
.store-badge-text span {
  font-size: .65rem;
  color: var(--text-3);
  line-height: 1;
  font-weight: 500;
}
.store-badge-text strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
}

/* ---- Store Badges (step compact) ---- */
.step-store-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}
.step-store-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 8px;
  padding: .38rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--indigo-300);
  transition: background var(--transition), border-color var(--transition);
}
.step-store-badge:hover {
  background: rgba(99,102,241,.18);
  border-color: rgba(99,102,241,.4);
}

/* ---- Hero Device Mockup ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up .7s cubic-bezier(.22,.61,.36,1) .35s both;
}
.device-wrapper {
  position: relative;
  width: 280px;
}
.device-frame {
  width: 260px;
  height: 500px;
  background: #0a0a22;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99,102,241,.2), 0 40px 80px rgba(0,0,0,.6), 0 0 60px rgba(99,102,241,.15);
  margin: 0 auto;
}
.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0a0a22;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 100px;
  z-index: 10;
}
.device-screen {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: #0e0e28;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(99,102,241,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99,102,241,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-route {
  position: absolute;
  top: 40%; left: 20%;
  width: 60%; height: 30%;
  border: 2px dashed rgba(129,140,248,.4);
  border-radius: 50px 50px 80px 20px;
  transform: rotate(-8deg);
}

.pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.pin svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.pin span {
  background: rgba(13,13,38,.9);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 1px 6px;
  white-space: nowrap;
}
.pin-a { top: 55%; left: 18%; color: var(--indigo-400); }
.pin-b { top: 22%; left: 55%; color: var(--violet-400); }
.pin-c { top: 62%; left: 62%; color: var(--sky-400); }

.pulse-dot::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(56,189,248,.25);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.7); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.alert-card {
  position: absolute;
  bottom: 60px;
  left: 12px; right: 12px;
  background: rgba(17,17,40,.95);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 12px;
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  animation: slide-up 1s cubic-bezier(.22,.61,.36,1) 1.5s both;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(52,211,153,.15);
  border: 1px solid rgba(52,211,153,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-400);
  flex-shrink: 0;
}
.alert-text { display: flex; flex-direction: column; gap: 1px; }
.alert-text strong { font-size: .78rem; font-weight: 700; color: var(--text-1); }
.alert-text span { font-size: .69rem; color: var(--text-3); }

.device-stat {
  position: absolute;
  background: rgba(17,17,42,.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}
.device-stat strong { font-size: .82rem; font-weight: 700; color: var(--text-1); display: block; }
.device-stat span { color: var(--text-3); font-size: .72rem; }
.stat-users {
  top: 18%;
  right: -50px;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) 1.8s both;
}
.stat-icon { font-size: 1.3rem; }
.stat-live {
  bottom: 22%;
  left: -40px;
  gap: .5rem;
  animation: fade-up .6s cubic-bezier(.22,.61,.36,1) 2s both;
  color: var(--text-2);
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--emerald-400);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52,211,153,.7);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============ SECTION COMMON ============ */
.section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: .75rem 0 1rem;
}
.section-header p { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--indigo-400);
  background: rgba(99,102,241,.1);
  padding: .38rem .95rem;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,.22);
}
.section-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--indigo-500); }
.section-tag.light {
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.section-tag.light::before { background: var(--indigo-400); }

/* ============ USE CASES ============ */
.usecases { background: var(--bg-surface); }
.usecase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.usecase-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--indigo-600), var(--violet-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.usecase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(99,102,241,.2);
  border-color: rgba(99,102,241,.25);
}
.usecase-card:hover::after { transform: scaleX(1); }

.usecase-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.usecase-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(99,102,241,.12);
  color: var(--indigo-400);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(99,102,241,.18);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.usecase-card:hover .usecase-icon { transform: scale(1.1) rotate(-4deg); }
.usecase-icon svg { width: 24px; height: 24px; }
.usecase-badge {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--indigo-400);
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  padding: .3rem .8rem;
  border-radius: 100px;
}
.usecase-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.025em; }
.usecase-card > p { color: var(--text-2); line-height: 1.68; font-size: .96rem; margin-bottom: 1.5rem; }
.usecase-list { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.usecase-list li {
  font-size: .88rem;
  color: var(--text-2);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.usecase-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .52em;
  width: 12px; height: 2px;
  background: linear-gradient(to right, var(--indigo-500), var(--violet-500));
  border-radius: 2px;
}
[dir="rtl"] .usecase-list li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .usecase-list li::before { left: auto; right: 0; }

/* ============ FEATURES ============ */
.features { background: var(--bg-base); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(99,102,241,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(99,102,241,.2);
  border-color: rgba(99,102,241,.2);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.18);
  color: var(--indigo-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background var(--transition);
}
.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-4deg);
  background: rgba(99,102,241,.18);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card p { font-size: .88rem; color: var(--text-2); line-height: 1.62; }

/* ============ PRICING ============ */
.pricing { background: var(--bg-base); }

/* -- Billing toggle -- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-bottom: 3rem;
}
.billing-opt {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color var(--transition);
}
.billing-opt.active { color: var(--text-1); }
.toggle-pill {
  position: relative;
  width: 44px; height: 24px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid var(--border-light);
  border-radius: 100px;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.toggle-pill[aria-checked="true"] {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.toggle-pill[aria-checked="true"] .toggle-thumb {
  transform: translateX(20px);
  background: #fff;
}
/* RTL: thumb starts on the right (monthly) and moves left (yearly) */
[dir="rtl"] .toggle-thumb {
  left: auto;
  right: 2px;
}
[dir="rtl"] .toggle-pill[aria-checked="true"] .toggle-thumb {
  transform: translateX(-20px);
}
.save-badge {
  font-size: .72rem;
  font-weight: 700;
  color: var(--emerald-400);
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.2);
  padding: .25rem .65rem;
  border-radius: 100px;
  letter-spacing: .04em;
}

/* -- Plan groups -- */
.plan-group { margin-bottom: 3rem; }
.plan-group:last-child { margin-bottom: 0; }
.plan-group-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--indigo-400);
  margin-bottom: 1.25rem;
}
.plan-group-label svg { opacity: .8; }

/* -- Plan cards grid -- */
.plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.business-row {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* -- Individual plan card -- */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.plan-card:hover {
  border-color: rgba(99,102,241,.25);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.plan-featured {
  border-color: rgba(99,102,241,.4);
  background: linear-gradient(160deg, rgba(99,102,241,.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(99,102,241,.15), 0 20px 50px rgba(0,0,0,.3);
}
.plan-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo-600), var(--violet-500));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99,102,241,.45);
}

.plan-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
}
.plan-price {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
}
.price-val {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -.04em;
  transition: opacity .2s;
}
.price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: .25rem;
}
.price-per {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
}
.price-equiv {
  font-size: .74rem;
  color: var(--emerald-400);
  font-weight: 600;
  display: none;
}

.plan-track {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--indigo-400);
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 8px;
  padding: .5rem .85rem;
}

.plan-perks {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.plan-perks li {
  font-size: .88rem;
  color: var(--text-2);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.45;
}
.plan-perks li::before {
  content: '';
  position: absolute;
  left: 0; top: .5em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(99,102,241,.25);
  border: 2px solid var(--indigo-500);
}
[dir="rtl"] .plan-perks li { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .plan-perks li::before { left: auto; right: 0; }

.plan-cta { justify-content: center; }

/* -- Per-seat addon box -- */
.per-seat {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: rgba(52,211,153,.06);
  border: 1px solid rgba(52,211,153,.15);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}
.per-seat-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(52,211,153,.15);
  color: var(--emerald-400);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.per-seat div { display: flex; flex-direction: column; gap: 2px; }
.per-seat-mo, .per-seat-yr {
  font-size: .84rem;
  font-weight: 600;
  color: var(--emerald-400);
}
.per-seat-yr { display: none; }

/* -- Employee calculator -- */
.emp-calc {
  background: var(--bg-card-2);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.emp-calc-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--indigo-400);
}
.emp-calc-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.02em;
}
.emp-calc > p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: -.5rem;
}
.calc-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}
.calc-field > span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
}
.calc-stepper {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.stepper-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.25);
  color: var(--indigo-400);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
}
.stepper-btn:hover {
  background: rgba(99,102,241,.28);
  border-color: rgba(99,102,241,.45);
}
.stepper-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.stepper-val {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
  min-width: 28px;
  text-align: center;
}
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
}
.calc-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
}
.calc-line span:first-child { color: var(--text-2); }
.calc-line span:last-child { color: var(--text-1); font-weight: 600; }
.extra-line { display: none; }
.extra-line span:last-child { color: var(--emerald-400); }
.calc-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius);
}
.calc-total-row span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
}
.calc-total-row strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.02em;
}

/* ============ HOW IT WORKS ============ */
.howitworks {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.howitworks::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99,102,241,.06) 0%, transparent 70%);
  pointer-events: none;
}
.howitworks .section-header h2 { color: var(--text-1); }

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo-400);
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.step.in-view .step-icon { animation: step-pop .6s cubic-bezier(.22,.61,.36,1) .3s both; }
@keyframes step-pop {
  from { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.25); transform: scale(1); }
  55%  { transform: scale(1.15); }
  to   { background: rgba(99,102,241,.22); border-color: rgba(129,140,248,.5); box-shadow: 0 0 24px rgba(99,102,241,.35); transform: scale(1); }
}
.step-icon svg { width: 22px; height: 22px; }
.step-number {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--indigo-500);
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .55rem; letter-spacing: -.02em; }
.step-content p { font-size: .87rem; color: var(--text-2); line-height: 1.62; }

.step-arrow {
  padding-top: 18px;
  color: rgba(99,102,241,.35);
  flex-shrink: 0;
}
.step-arrow svg { width: 24px; height: 24px; }

/* ============ CONTACT ============ */
.contact {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.15) 0%, transparent 60%),
    var(--bg-base);
  position: relative;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-text .section-tag { margin-bottom: 1.25rem; }
.contact-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.contact-text p { color: var(--text-2); font-size: 1rem; line-height: 1.7; margin-bottom: 1.75rem; }

.contact-cards { display: flex; flex-direction: column; gap: .85rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.contact-card:hover {
  background: var(--bg-card-2);
  transform: translateX(5px);
  border-color: rgba(99,102,241,.3);
}
[dir="rtl"] .contact-card:hover { transform: translateX(-5px); }
[dir="rtl"] .contact-value[dir="ltr"] { text-align: right; }
.contact-card-icon {
  width: 44px; height: 44px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--indigo-400);
}
.contact-card-icon svg { width: 19px; height: 19px; }
.contact-card > div:nth-child(2) { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.contact-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.contact-value { font-size: .94rem; font-weight: 600; color: var(--text-1); }
.contact-arrow { color: var(--text-3); width: 18px; height: 18px; transition: color var(--transition), transform var(--transition); }
.contact-card:hover .contact-arrow { color: var(--indigo-400); transform: translateX(3px); }
[dir="rtl"] .contact-card:hover .contact-arrow { transform: translateX(-3px) scaleX(-1); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-base);
  color: var(--text-3);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.footer .logo-text { color: var(--text-1); font-size: 1rem; }
.footer-copy { font-size: .84rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-size: .84rem; transition: color var(--transition); font-weight: 500; }
.footer-links a:hover { color: var(--indigo-400); }

/* ============ ANIMATIONS ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes logo-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(99,102,241,.45); }
  50%       { box-shadow: 0 4px 24px rgba(99,102,241,.65), 0 0 0 4px rgba(99,102,241,.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow-1, .hero-glow-2, .logo-mark,
  .hero-badge, .hero-title, .hero-sub, .hero-actions, .hero-trust, .hero-visual,
  .badge-dot, .pulse-dot::before, .live-dot,
  .alert-card, .stat-users, .stat-live { animation: none; }
  .usecase-icon, .feature-icon { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .business-row { grid-template-columns: 1fr; }
  .hero-inner { gap: 2.5rem; }
  .device-wrapper { transform: scale(.9); transform-origin: center; }
  .stat-users { right: -30px; }
  .stat-live { left: -20px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; }
  [dir="rtl"] .hero-content { align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-trust { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-visual { display: none; }
  .usecase-grid { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 4.5rem 0; }
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .step-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.5rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .5rem; border-radius: 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 4rem; min-height: auto; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .section { padding: 4rem 0; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badge { min-width: unset; }
  .login-modal { padding: 1.75rem 1.5rem; }
}
