:root {
  --bg: #f6faf9;
  --surface: #ffffff;
  --surface-alt: #edf6f4;
  --ink: #0f1f24;
  --muted: #52676e;
  --border: rgba(15, 31, 36, 0.09);
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;
  --sky: #0284c7;
  --violet: #7c3aed;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 8px 24px rgba(15, 31, 36, 0.06);
  --shadow-lg: 0 24px 60px rgba(13, 148, 136, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}
.orb-1 {
  width: 460px;
  height: 460px;
  background: #5eead4;
  top: -140px;
  right: -120px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: #a7f3d0;
  bottom: 10%;
  left: -140px;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 250, 249, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
}
.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 0.98rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(13, 148, 136, 0.36);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(13, 148, 136, 0.08);
}
.btn-ghost:hover {
  background: rgba(13, 148, 136, 0.15);
}
.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: rgba(13, 148, 136, 0.4);
}
.btn-white {
  background: #fff;
  color: var(--teal-dark);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.sub-hint {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  direction: ltr;
}

/* Hero */
.hero {
  padding: 54px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.24);
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.22);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.32;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-item strong {
  font-size: 0.92rem;
}
.meta-item span {
  font-size: 0.78rem;
  color: var(--muted);
}
.meta-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(350px, 100%);
  background: #0f1f24;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-notch {
  width: 100px;
  height: 18px;
  background: #0f1f24;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -10px;
  position: relative;
  z-index: 3;
}

.phone-screen {
  background: #f3f9f8;
  border-radius: 28px;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-kicker {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}
.app-title {
  font-size: 1rem;
  font-weight: 800;
}

.status-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-chip.online {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.map-preview {
  position: relative;
  height: 158px;
  border-radius: 18px;
  background: linear-gradient(145deg, #d7f3ee, #eaf7f5);
  border: 1px solid rgba(13, 148, 136, 0.18);
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 148, 136, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 148, 136, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

.safe-zone-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  top: 22px;
  right: 34px;
  background: rgba(16, 185, 129, 0.16);
  border: 2px dashed rgba(13, 148, 136, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}
.zone-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 7px;
  border-radius: 999px;
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
}
.pin-child {
  top: 52px;
  right: 76px;
}
.pin-elder {
  bottom: 28px;
  left: 44px;
}
.pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2.5px solid #fff;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.35);
}
.pin-dot.elder {
  background: var(--amber);
}
.pin-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.member-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.avatar.teal { background: var(--teal); }
.avatar.amber { background: var(--amber); }

.member-info {
  flex: 1;
  min-width: 0;
}
.member-info strong {
  display: block;
  font-size: 0.84rem;
}
.member-info span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.mini-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mini-pill.safe {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.mini-pill.info {
  background: rgba(2, 132, 199, 0.13);
  color: #0369a1;
}

.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qa-btn {
  text-align: center;
  padding: 8px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
}
.qa-btn.sos {
  background: rgba(225, 29, 72, 0.12);
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.25);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
}
.fc-top { top: 28px; left: -12px; }
.fc-bottom { bottom: 26px; right: -12px; }
.floating-card strong { display: block; font-size: 0.8rem; }
.floating-card small { display: block; font-size: 0.7rem; color: var(--muted); }
.fc-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.fc-icon.emerald { background: var(--emerald); }
.fc-icon.rose { background: var(--rose); }

/* Trust Bar */
.trust-bar {
  padding: 18px 0 36px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 4px;
}
.trust-item span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--surface-alt);
}
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.eyebrow.light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.38;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.32);
}
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.icon-box.teal { background: rgba(13, 148, 136, 0.14); }
.icon-box.emerald { background: rgba(16, 185, 129, 0.14); }
.icon-box.rose { background: rgba(225, 29, 72, 0.12); }
.icon-box.sky { background: rgba(2, 132, 199, 0.12); }
.icon-box.violet { background: rgba(124, 58, 237, 0.12); }
.icon-box.amber { background: rgba(245, 158, 11, 0.14); }

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 10px;
}
.step-card h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Security */
.security-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.security-copy h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.security-copy p {
  color: var(--muted);
  margin-bottom: 18px;
}
.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-right: 26px;
  font-size: 0.94rem;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--emerald);
  font-weight: 900;
}

.security-panel {
  background: #0f1f24;
  color: #ecfdf5;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.arch-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5eead4;
}
.arch-row code {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.86rem;
  color: #fff;
}
.server-live-status {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #a7f3d0;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}
.status-dot.ok {
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.25);
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.plan-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
}
.plan-cycle {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-dark);
}
.plan-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
}
.plan-features {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.plan-features li::before {
  content: "• ";
  color: var(--teal);
  font-weight: 900;
}

/* FAQ */
.faq-wrap {
  max-width: 820px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Download Banner */
.download-banner {
  background: linear-gradient(135deg, #0f766e, #0d9488 55%, #10b981);
  color: #fff;
  border-radius: 28px;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.download-banner h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}
.download-banner p {
  color: rgba(255, 255, 255, 0.88);
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  background: var(--surface);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.footer-grid p {
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--teal);
}
.footer-bottom {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .security-box,
  .features-grid,
  .steps-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .floating-card {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
