/* ========================================================================
   Zxerex — Shared Stylesheet
   A portable, dependency-free stylesheet for a static multi-page site.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0b1f3a;
  --navy-light: #13294f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0ea5a4;
  --teal-light: #ccfbf1;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-navy: #081527;
  --text: #1e293b;
  --text-muted: #5b6b7f;
  --text-inverse: #eef2f8;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------------------------- Header ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 800;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-logo-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.brand-logo-chip .brand-logo {
  height: 32px;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: all 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--navy); }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--navy); }

/* ---------------------------- Hero ---------------------------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(14,165,164,0.18), transparent),
              linear-gradient(180deg, var(--bg-navy) 0%, var(--navy) 100%);
  color: var(--text-inverse);
  padding: 84px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #c3cede; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats .stat-num { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stats .stat-label { font-size: 0.82rem; color: #9fb0c6; }

.hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-visual .device-card {
  background: linear-gradient(160deg, #fff, #eef2f8);
  border-radius: 12px;
  padding: 22px;
  color: var(--text);
}
.hero-visual .device-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-visual .pill { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-light); color: #0f766e; }
.hero-visual .bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 10px; }
.hero-visual .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); }

/* ---------------------------- Sections ---------------------------- */
section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: var(--text-inverse); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c3cede; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 16px;
  font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.step-list { counter-reset: step; }
.step {
  display: flex; gap: 18px; margin-bottom: 30px; align-items: flex-start;
}
.step .num {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ---------------------------- Stat band ---------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-band .num { font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.stat-band .label { font-size: 0.88rem; color: var(--text-muted); }
.section-navy .stat-band .num { color: #fff; }

/* ---------------------------- Pricing ---------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.price-card .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--blue); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.03em;
}
.price-card .plan-name { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.price-card .plan-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.price-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-card .includes-camera { font-size: 0.82rem; color: var(--teal); font-weight: 600; margin-bottom: 22px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.92rem; display: flex; gap: 10px; }
.price-card li:first-child { border-top: none; }
.price-card li::before { content: '✓'; color: var(--teal); font-weight: 800; }
.pricing-note { text-align: center; margin-top: 30px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------------------------- Table ---------------------------- */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.92rem; }
.compare-table th, .compare-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left;
}
.compare-table th { color: var(--navy); font-weight: 700; background: var(--bg-alt); }
.compare-table td.center, .compare-table th.center { text-align: center; }

/* ---------------------------- Sector / list tiles ---------------------------- */
.tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.tile .dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); margin-top: 8px;
}
.tile h3 { margin-bottom: 6px; font-size: 1.05rem; }
.tile p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------------------------- Quote / testimonial ---------------------------- */
.quote {
  border-left: 4px solid var(--teal);
  padding: 8px 0 8px 22px;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
}
.quote cite { display: block; margin-top: 12px; font-size: 0.85rem; font-style: normal; color: var(--text-muted); }

/* ---------------------------- CTA banner ---------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue), var(--teal));
  border-radius: 20px;
  padding: 52px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 26px; }
.cta-banner .btn-primary { background: #fff; color: var(--navy); }
.cta-banner .btn-primary:hover { background: #eef2f8; }

/* ---------------------------- Forms ---------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; margin-bottom: 18px; background: #fbfcfe;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.form-success {
  display: none; background: var(--teal-light); border: 1px solid var(--teal);
  color: #0f5f5e; padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.9rem;
}

/* ---------------------------- Footer ---------------------------- */
.site-footer { background: var(--bg-navy); color: #9fb0c6; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #9fb0c6; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #7f92ac; font-size: 0.88rem; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: #7f92ac;
}

/* ---------------------------- Page header (inner pages) ---------------------------- */
.page-header {
  background: linear-gradient(180deg, var(--bg-navy), var(--navy));
  color: #fff;
  padding: 64px 0 60px;
}
.page-header .eyebrow { background: rgba(14,165,164,0.18); color: #7fd6d4; }
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: #c3cede; max-width: 640px; }
.breadcrumb { font-size: 0.82rem; color: #7f92ac; margin-bottom: 14px; }
.breadcrumb a { color: #9fb0c6; }

/* ---------------------------- Utilities ---------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.badge-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge-list span {
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .stat-band, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-navy { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .stat-band, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta-banner { padding: 38px 24px; }
}
