/* Mahram Landing Styles */
:root{
  --bg: #050814;
  --bg-2: #0f1530;
  --surface: rgba(20,23,45,0.65);
  --surface-strong: rgba(27,31,62,0.85);
  --text: #f1f2ff;
  --muted: #b7bbd9;
  --primary: #6c5ce7;
  --primary-2: #00d2ff;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 24px 60px rgba(0,0,0,0.45);
  --radius-lg: 20px;
  --reveal-ease: cubic-bezier(0.21, 0.61, 0.35, 1);
  --phone-width: 280px;
  --phone-height: 560px;
  --notification-width: 268px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1000px 800px at 10% -10%, rgba(108,92,231,0.35), transparent 60%),
    radial-gradient(1200px 700px at 110% 0%, rgba(0,210,255,0.25), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; }

.container{ width: min(1120px, 92%); margin-inline:auto; }

/* Motion */
.reveal{
  --reveal-x: 0;
  --reveal-y: 24px;
  --reveal-z: 0;
  opacity:0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), var(--reveal-z));
  animation: reveal-up .85s var(--reveal-ease) forwards;
  animation-delay: var(--delay, 0s);
}
.delay-1{ --delay: .12s; }
.delay-2{ --delay: .24s; }
.delay-3{ --delay: .36s; }
.delay-4{ --delay: .48s; }
.delay-5{ --delay: .6s; }
.delay-6{ --delay: .72s; }
.float-card{
  animation: floatCard 12s ease-in-out 1.2s infinite alternate;
  animation-fill-mode: both;
}
.float-card.reveal{
  animation:
    reveal-up .85s var(--reveal-ease) forwards,
    floatCard 12s ease-in-out 1.2s infinite alternate;
}

@media (prefers-reduced-motion: reduce){
  .reveal,
  .float-card{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-name: none !important;
    opacity:1 !important;
    transform:none !important;
  }
  .notification-stack > *{ animation:none !important; opacity:1 !important; transform:none !important; }
}

@keyframes reveal-up{
  from{
    opacity:0;
    transform: translate3d(var(--reveal-x), var(--reveal-y), var(--reveal-z));
  }
  to{
    opacity:1;
    transform: translate3d(var(--reveal-x), 0, var(--reveal-z));
  }
}

@keyframes floatCard{
  0%{ transform: translate3d(var(--card-offset-x, 0), 0, 0); }
  50%{ transform: translate3d(var(--card-offset-x, 0), -10px, 0); }
  100%{ transform: translate3d(var(--card-offset-x, 0), 0, 0); }
}

@keyframes notif-pop{
  0%{ opacity:0; transform: translate3d(-20px, 18px, 0) scale(0.98); }
  60%{ opacity:1; transform: translate3d(0, 0, 0) scale(1.02); }
  100%{ opacity:1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:90;
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(5,10,25,0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:.25px;
}
.brand-img{
  width:32px;
  height:32px;
  border-radius:10px;
  display:inline-block;
  padding:2px;
  background: linear-gradient(135deg, rgba(108,92,231,.25), rgba(0,210,255,.25));
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}
.brand-name{ font-size:18px; }
.nav{ display:flex; gap:22px; align-items:center; }
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:15px;
  transition: color .2s ease, opacity .2s ease;
}
.nav a:hover,
.nav a:focus{ color:var(--text); }
.nav-cta{
  padding:8px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color:var(--text) !important;
}

/* Hero */
.hero{
  position:relative;
  padding: 112px 0 72px;
  overflow:hidden;
}
.hero-orb{
  position:absolute;
  width:520px;
  height:520px;
  top:-160px;
  left:-160px;
  background: radial-gradient(circle at center, rgba(108,92,231,0.55), transparent 70%);
  filter: blur(40px);
  opacity:.45;
  pointer-events:none;
}
.hero-orb.orb-2{
  width:640px;
  height:640px;
  top:-220px;
  right:-240px;
  background: radial-gradient(circle at center, rgba(0,210,255,0.35), transparent 70%);
}
.hero-layout{
  position:relative;
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap:48px;
  align-items:center;
}
.hero-content h1{
  margin:16px 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height:1.05;
  letter-spacing:-0.6px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.lead{
  margin:0 0 28px;
  color:var(--muted);
  font-size: clamp(17px, 2.4vw, 19px);
  line-height:1.6;
}

.hero-actions{
  display:flex;
  flex-direction:column;
  gap:18px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:24px;
  box-shadow: var(--shadow);
}
.cta-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:14px;
  text-decoration:none;
  cursor:pointer;
  padding: 12px 18px;
  font-size:15px;
  font-weight:600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color:var(--text);
}
.btn.primary{
  border:0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow: 0 18px 40px rgba(108,92,231,0.35);
}
.btn.primary:hover,
.btn.primary:focus{ transform: translateY(-1px); box-shadow: 0 22px 46px rgba(108,92,231,0.45); }
.btn.secondary:hover,
.btn.secondary:focus{ background: rgba(255,255,255,0.08); }

.code-widgets{
  display:grid;
  gap:12px;
}
.code-card,
.code-input{
  background: var(--surface-strong);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:16px;
  padding:16px 18px;
}
.code-card .label,
.code-input .label{
  display:block;
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--muted);
  margin-bottom:8px;
}
.code-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.code{
  font-weight:800;
  letter-spacing:4px;
  font-size:22px;
  padding:10px 16px;
  border-radius:12px;
  background: rgba(255,255,255,0.08);
}
.chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
}
.chip:hover{ background: rgba(255,255,255,0.14); }
.hint{
  margin:8px 0 0;
  font-size:13px;
  color:var(--muted);
}
.input-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.input-row input{
  flex:1;
  min-width:200px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(8,11,25,0.8);
  color:var(--text);
  padding:12px 14px;
  font-size:16px;
  letter-spacing:1px;
}
.input-row input::placeholder{ color:#8f93b5; }

.store-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.store-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-decoration:none;
  color:var(--text);
}
.store-btn:hover{ background: rgba(255,255,255,0.09); }

.stats{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  margin:32px 0 0;
}
.stats div{ min-width:120px; }
.stats dt{
  font-size:30px;
  font-weight:700;
  letter-spacing:-0.3px;
  margin-bottom:4px;
}
.stats dd{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.4;
}

.hero-visual{
  position:relative;
  display:flex;
  justify-content:center;
  perspective: 1200px;
  padding-inline:40px;
}
.phone-stack{
  position:relative;
  display:flex;
  justify-content:center;
  width:min(1100px, 100%);
  padding:40px 0;
}
.notification-stack{
  position:absolute;
  top:18px;
  left: calc(50% + var(--phone-width) / 2 - var(--notification-width) * 0.2);
  width: var(--notification-width);
  display:grid;
  gap:18px;
  pointer-events:none;
  z-index:16;
}
.notification-stack > *{
  width:100%;
  background: linear-gradient(180deg, rgba(23,25,45,0.96), rgba(12,13,30,0.96));
  border:1px solid rgba(255,255,255,0.18);
  border-radius:24px;
  padding:22px 24px 20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  box-shadow: 0 44px 96px rgba(0,0,0,0.58);
  opacity:0;
  transform: translate3d(-20px, 18px, 0);
  animation:
    notif-pop .65s var(--reveal-ease) forwards,
    floatCard 12s ease-in-out .9s infinite alternate;
}
.notification-stack > :nth-child(1){ animation-delay:.12s; }
.notification-stack > :nth-child(2){ animation-delay:.24s; }
.notification-stack > :nth-child(3){ animation-delay:.36s; }
.badge-card strong,
.event-card strong,
.sos-card strong{ display:block; margin:8px 0 4px; font-size:16px; }
.pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(108,92,231,0.6), rgba(0,210,255,0.6));
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.muted-pill{
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:var(--muted);
}
.pill.danger{
  background: linear-gradient(135deg, #ff4d6d, #ff8450);
  color:#fff;
  border:0;
}
.sub{
  font-size:13px;
  color:var(--muted);
}

.phone-frame{
  position:relative;
  width:var(--phone-width);
  height:var(--phone-height);
  padding:18px;
  border-radius:38px;
  background: linear-gradient(180deg, rgba(28,32,68,0.95), rgba(8,10,28,0.95));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  z-index:8;
}
.screen{
  position:relative;
  width:100%;
  height:100%;
  border-radius:26px;
  overflow:hidden;
  background:#0a0c1c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.map{ position:absolute; inset:0; }
.map-embed{
  position:absolute;
  inset:0;
  border:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:0;
  transition: opacity .4s ease;
}
.map-embed.loaded{ opacity:1; }
.map-fallback{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border:0;
}
.map-overlay{ display:none; }
.map-grid{ display:none; }
.ping{
  position:absolute;
  width:16px;
  height:16px;
  border-radius:50%;
  background: currentColor;
  color:#6c5ce7;
  left: calc(28% + var(--i)*18%);
  top: calc(35% + var(--i)*14%);
}
.ping::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:2px solid currentColor;
  animation: ripple 2.8s calc(var(--i) * .5s) infinite ease-out;
  opacity:.8;
}
@keyframes ripple{
  from{ transform: scale(1); opacity:.9; }
  to{ transform: scale(3.4); opacity:0; }
}

/* Sections */
.section{ padding: 80px 0; }
.section.alt{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  border-block: 1px solid rgba(255,255,255,0.06);
}
.section.contrast{
  background: rgba(13,18,40,0.9);
  border-block:1px solid rgba(255,255,255,0.06);
}
.section.cta{
  padding-block: 96px;
}
.section-heading{
  max-width:720px;
  margin:0 auto 48px;
  text-align:center;
}
.section-heading h2{
  margin:16px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing:-0.4px;
}
.section-intro{
  margin:0;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap:20px;
}
.feature-card{
  position:relative;
  padding:24px;
  border-radius:18px;
  background: linear-gradient(160deg, rgba(26,29,55,0.9), rgba(18,20,41,0.95));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform .3s var(--reveal-ease), box-shadow .3s ease, border-color .3s ease;
}
.feature-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  border:1px solid rgba(108,92,231,0.25);
  opacity:0;
  transition: opacity .3s ease;
}
.feature-card:hover::before{ opacity:1; }
.feature-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.32);
  border-color: rgba(255,255,255,0.16);
}
.icon-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background: rgba(108,92,231,0.18);
  color:#bdb8ff;
  margin-bottom:12px;
}
.feature-card h3{
  margin:10px 0;
  font-size:20px;
}
.feature-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.timeline{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:24px;
}
.timeline-step{
  position:relative;
  padding:24px;
  border-radius:18px;
  background: rgba(20,23,45,0.85);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: transform .3s var(--reveal-ease), box-shadow .3s ease, border-color .3s ease;
}
.step-number{
  display:inline-flex;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(108,92,231,0.6), rgba(0,210,255,0.6));
  font-weight:700;
  font-size:16px;
  margin-bottom:12px;
}
.timeline-step h3{
  margin:6px 0 10px;
  font-size:20px;
}
.timeline-step p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.timeline-step:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.16);
}

.safety-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap:20px;
}
.safety-card{
  padding:26px;
  border-radius:20px;
  background: linear-gradient(160deg, rgba(28,33,63,0.95), rgba(10,14,32,0.95));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 36px rgba(0,0,0,0.3);
  transition: transform .3s var(--reveal-ease), box-shadow .3s ease, border-color .3s ease;
}
.safety-card h3{
  margin:0 0 12px;
  font-size:20px;
}
.safety-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.safety-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

.split-panel{
  display:grid;
  gap:36px;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  align-items:center;
}
.panel h2{
  margin:14px 0 14px;
  font-size: clamp(28px, 4vw, 38px);
}
.panel p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}
.checklist{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:14px;
}
.checklist li{
  position:relative;
  padding-left:30px;
  font-size:16px;
  color:var(--text);
}
.checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:18px;
  height:18px;
  border-radius:6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transform: translateY(-50%);
  box-shadow: 0 6px 16px rgba(108,92,231,0.45);
}

.cta-panel{
  position:relative;
  margin:0 auto;
  max-width:720px;
  text-align:center;
  padding:48px;
  border-radius:28px;
  background: linear-gradient(160deg, rgba(32,36,72,0.95), rgba(12,16,36,0.95));
  border:1px solid rgba(255,255,255,0.09);
  box-shadow: 0 26px 60px rgba(0,0,0,0.35);
  transition: transform .3s var(--reveal-ease), box-shadow .3s ease;
}
.cta-panel h2{
  margin:16px 0 12px;
  font-size: clamp(32px, 4.5vw, 44px);
}
.cta-panel p{
  margin:0 0 28px;
  color:var(--muted);
  line-height:1.6;
}
.cta-panel-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.cta-panel:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

/* Footer */
.site-footer{
  border-top:1px solid rgba(255,255,255,0.08);
  padding:24px 0;
  background: rgba(10,12,26,0.9);
}
.foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size:14px;
  color:var(--muted);
}
.foot .links{ display:flex; gap:16px; }
.foot a{ color:var(--muted); text-decoration:none; }
.foot a:hover{ color:var(--text); }

/* Responsive */
@media (max-width: 1024px){
  .hero-layout{ grid-template-columns: 1fr; }
  .hero-content{ order:2; }
  .hero-visual{ order:1; margin-bottom:40px; }
  .phone-stack{ justify-content:center; }
  .notification-stack{ position:relative; left:auto; top:0; width:100%; margin-bottom:24px; }
  .phone-frame{ margin:0 auto; }
}

@media (max-width: 720px){
  .header-inner{ padding:14px 0; }
  .nav{ gap:14px; font-size:14px; }
  .hero{ padding:96px 0 60px; }
  .hero-actions{ padding:20px; }
  .stats{ gap:20px; }
  .phone-frame{ width:240px; height:490px; }
  .phone-stack{ width:260px; padding:28px 0; }
  .notification-stack{ width:100%; left:auto; }
  .section{ padding:64px 0; }
  .section-heading{ margin-bottom:36px; }
  .cta-panel{ padding:36px 28px; }
  .foot{ flex-direction:column; text-align:center; }
}

@media (max-width: 520px){
  .nav{ display:none; }
  .hero-content h1{ font-size: clamp(32px, 8vw, 42px); }
  .hero-actions{ padding:18px; }
  .code-row{ flex-wrap:wrap; }
  .code{ width:100%; text-align:center; }
  .chip{ width:100%; justify-content:center; }
  .notification-stack{ width:100%; left:auto; }
  .notification-stack > *{
    position:relative;
    transform:none;
    --reveal-x: 0;
    --card-offset-x: 0;
    --reveal-y: 12px;
    --reveal-z: 0;
    top:auto;
    left:auto;
    right:auto;
    bottom:auto;
  }
  .phone-stack{ gap:16px; }
}
