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

:root {
  --bg: #0a112e;
  --bg-alt: #060a1f;
  --panel: #111a31;
  --panel-2: #182245;
  --border: #1e2a4d;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #4f46e5;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}

html, body {
  font-family: 'Cairo', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
b, strong { font-weight: 800; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel-2); padding: 2px 8px; border-radius: 6px; font-size: 0.92em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ───────────── Nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 17, 46, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: inset 0 0 0 2px #1d4ed8;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 15px; font-weight: 900; letter-spacing: 0.01em; }
.brand-text span { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 10px; flex-shrink: 0; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 11px;
  font-size: 14px; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(79, 70, 229, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--panel-2); }
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; padding: 13px 22px; }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding: 90px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  filter: blur(90px);
  border-radius: 50%;
  opacity: 0.55;
}
.hero-glow-1 { top: -10%; right: -10%; background: radial-gradient(circle, #1d4ed8, transparent 70%); }
.hero-glow-2 { bottom: -20%; left: -10%; background: radial-gradient(circle, #7c3aed, transparent 70%); opacity: 0.4; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 28px;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(135deg, #a5b4fc, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 36px;
}

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

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-trust div { display: flex; flex-direction: column; gap: 4px; }
.hero-trust b { font-size: 24px; font-weight: 900; color: #fff; }
.hero-trust span { font-size: 12px; color: var(--muted); }

/* ───────────── Sections ───────────── */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 56px;
}

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,0.4); }
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.card p { color: #cbd5e1; font-size: 14.5px; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(79,70,229,0.15));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.card-icon::before {
  content: ""; position: absolute; inset: 12px;
  background: currentColor;
  color: #a5b4fc;
  mask: var(--ic) center / contain no-repeat;
  -webkit-mask: var(--ic) center / contain no-repeat;
}
.card-icon[data-icon=map]::before     { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6'/><line x1='8' y1='2' x2='8' y2='18'/><line x1='16' y1='6' x2='16' y2='22'/></svg>"); }
.card-icon[data-icon=bell]::before    { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9'/><path d='M13.73 21a2 2 0 01-3.46 0'/></svg>"); }
.card-icon[data-icon=history]::before { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v5h5'/><path d='M3.05 13A9 9 0 1 0 6 5.3L3 8'/><path d='M12 7v5l4 2'/></svg>"); }
.card-icon[data-icon=users]::before   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M23 21v-2a4 4 0 00-3-3.87'/><path d='M16 3.13a4 4 0 010 7.75'/></svg>"); }
.card-icon[data-icon=phone]::before   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='2' width='14' height='20' rx='2' ry='2'/><line x1='12' y1='18' x2='12.01' y2='18'/></svg>"); }
.card-icon[data-icon=report]::before  { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/></svg>"); }

/* ───────────── Steps ───────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: #cbd5e1; font-size: 14.5px; }

/* ───────────── Pricing ───────────── */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-featured {
  border-color: #6366f1;
  background: linear-gradient(180deg, rgba(99,102,241,0.10), var(--panel));
  box-shadow: 0 28px 80px -28px rgba(99, 102, 241, 0.45);
}
.plan-tag {
  position: absolute; top: -12px; right: 20px;
  background: #6366f1; color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.plan-price b { font-size: 38px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.plan-price span { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; flex: 1; margin-bottom: 24px; }
.plan li { padding: 8px 0; color: #cbd5e1; font-size: 14.5px; border-bottom: 1px dashed var(--border); }
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  margin-inline-end: 10px; vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 13px; }

/* ───────────── CTA ───────────── */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 60%, #312e81 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 24px 24px;
}
.cta-inner { position: relative; max-width: 760px; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.25; margin-bottom: 18px; color: #fff; }
.cta p { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* ───────────── Footer ───────────── */
.foot { background: #050a1c; padding: 64px 0 24px; border-top: 1px solid var(--border); }
.foot-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot h4 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.foot a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color .15s; }
.foot a:hover { color: var(--text); }
.foot p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.foot-bottom { padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }

/* ───────────── Signup / Setup pages ───────────── */
.page { padding: 56px 0 80px; min-height: 70vh; }
.page-narrow { max-width: 640px; margin: 0 auto; }
.page h1 { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.page .lead { font-size: 16px; color: var(--muted); margin-bottom: 36px; max-width: none; }

.form { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row.split { flex-direction: row; gap: 12px; }
.form-row.split > * { flex: 1; }
.form label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form input, .form select, .form textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.form textarea { min-height: 90px; resize: vertical; }
.form .actions { display: flex; gap: 10px; margin-top: 8px; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; display: none; }
.form-status.ok  { display: block; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #34d399; }
.form-status.err { display: block; background: rgba(239, 68, 68, 0.12);  border: 1px solid rgba(239, 68, 68, 0.35);  color: #f87171; }

.steps-list { counter-reset: step; }
.steps-list li {
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
  position: relative;
  padding-inline-start: 70px;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: #fff; font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps-list h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.steps-list p { color: #cbd5e1; font-size: 14px; }
.steps-list code { display: block; margin-top: 10px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }

.note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #fcd34d;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 70px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .nav .container { gap: 10px; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13px; }
  .foot-inner { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; }
  .form-row.split { flex-direction: column; }
}
