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

:root {
  /* DARK THEME (Default) */
  --bg: #030712;
  --surface: #0b0f19;
  --card: #111827;
  --card2: #1f2937;
  --border: rgba(59, 130, 246, 0.15);
  --border-hi: rgba(59, 130, 246, 0.35);
  --primary: #2563eb;
  --primary-lt: #60a5fa;
  --live: #60a5fa;
  --live-dim: rgba(16, 185, 129, 0.12);
  --alert: #ef4444;
  --alert-dim: rgba(239, 68, 68, 0.12);
  --warn: #f59e0b;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --dim: #374151;
  --shadow: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(59, 130, 246, 0.2);
  --input-bg: #0b0f19;
  --gradient-bg: linear-gradient(135deg, #111827, #030712);
}

[data-theme="light"] {
  /* LIGHT THEME */
  --bg: #f3f4f6;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: #f3f4f6;
  --border: rgba(37, 99, 235, 0.1);
  --border-hi: rgba(37, 99, 235, 0.25);
  --primary: #2563eb;
  --primary-lt: #1d4ed8;
  --live: #059669;
  --live-dim: rgba(5, 150, 105, 0.12);
  --alert: #dc2626;
  --alert-dim: rgba(220, 38, 38, 0.12);
  --warn: #d97706;
  --text: #111827;
  --muted: #4b5563;
  --dim: #e5e7eb;
  --shadow: rgba(37, 99, 235, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(37, 99, 235, 0.15);
  --input-bg: #f9fafb;
  --gradient-bg: linear-gradient(135deg, #ffffff, #f3f4f6);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* GLOBAL TRANSITIONS FOR THEME CHANGE */
body, nav, section, div, header, footer, a, p, h1, h2, h3, h4, h5, button, img, input, textarea, span, svg, .feat-card, .inc-card, .phone-frame, .browser-frame, .browser-bar, .hw-card, .remote-banner, .cta-wrap, .ptab, .af-item, .rb-btn {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  color: inherit;
}

.ico-lg { width: 1.4em; height: 1.4em; }
.ico-xl { width: 2em; height: 2em; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
  margin-right: 1rem;
}
.theme-toggle:hover {
  background: var(--border);
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--border-hi);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  height: 100%;
}
.nav-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px var(--shadow));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s, transform 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.btn-nav {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

/* DOTS */
.ldot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ldot-g {
  background: var(--live);
  animation: pgn 2s infinite;
}
.ldot-r {
  background: var(--alert);
  animation: pgr 1.4s infinite;
}
@keyframes pgn {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes pgr {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 60px;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, transparent 20%, var(--bg) 85%);
  pointer-events: none;
}
[data-theme="light"] .hero-veil {
  background: radial-gradient(circle at 80% 30%, transparent 25%, var(--bg) 90%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 580px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-hi);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-lt);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.hero-h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}
.hero-h1 .hl {
  color: var(--live);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.hero-p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.2rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-p {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.55);
}
.btn-o {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
  backdrop-filter: blur(5px);
}
.btn-o:hover {
  background: var(--border);
  transform: translateY(-2px);
}

/* HERO VISUAL COLUMN (PRODUCT PRESENTATION) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.device-showcase {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.8rem;
  box-shadow: 0 30px 60px var(--shadow);
  backdrop-filter: blur(15px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
.device-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
}
/* HOTSPOTS */
.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--live);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 6px var(--live-dim);
  animation: pulse-hotspot 2s infinite;
  z-index: 10;
}
@keyframes pulse-hotspot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hotspot-tooltip {
  position: absolute;
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid var(--border-hi);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 20;
  line-height: 1.4;
}
.hotspot-tooltip strong {
  display: block;
  color: var(--live);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-8px);
}
.hs-siren { top: 25%; right: 10%; }
.hs-siren .hotspot-tooltip { bottom: 130%; right: -20px; }

.hs-camera { bottom: 35%; left: 20%; }
.hs-camera .hotspot-tooltip { top: 130%; left: -20px; }

.hs-strobe { top: 24%; left: 43%; }
.hs-strobe .hotspot-tooltip { bottom: 130%; left: -100px; }

.hs-cabinet { top: 48%; right: 42%; }
.hs-cabinet .hotspot-tooltip { top: 130%; left: -100px; }

/* HERO FEED (FLOATING OVERLAY) */
.hero-feed {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 4;
  width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px var(--shadow);
}
.hf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--alert);
  font-weight: 700;
}
.hf-count {
  margin-left: auto;
  background: var(--alert);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
#liveFeed {
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
}
#liveFeed::-webkit-scrollbar { width: 3px; }
#liveFeed::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 3px; }
.fi {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  animation: sli 0.35s ease-out;
}
@keyframes sli {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fi-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--alert-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alert);
  flex-shrink: 0;
}
.fi-dev {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--primary-lt);
  font-weight: 700;
}
.fi-type {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 600;
  margin: 0.1rem 0;
}
.fi-time {
  font-size: 0.58rem;
  color: var(--muted);
}
.btn-atnd {
  font-size: 0.58rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-top: 5px;
  display: block;
  transition: background 0.2s;
}
.btn-atnd:hover {
  background: var(--primary-lt);
}

/* STATS */
.stats-bar {
  display: flex;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  box-shadow: 0 4px 15px var(--shadow);
}
.sb-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px solid var(--border);
}
.sb-item:last-child {
  border-right: none;
}
.sb-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--live);
  line-height: 1;
  text-shadow: 0 0 15px var(--live-dim);
}
.sb-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

/* SECTIONS */
.sec {
  padding: 6rem 2rem;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-lt);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.sec-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}
.sec-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
}

/* FEATURES */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.03));
  pointer-events: none;
}
.feat-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow);
}
.fc-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}
.fc-t {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.fc-d {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* PHONE FRAMES */
.phones-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2rem;
}
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phone-wrap.center .phone-frame {
  transform: translateY(-20px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25), 0 0 0 2px var(--border-hi);
}
.phone-frame {
  width: 190px;
  background: #080f1e;
  border-radius: 32px;
  border: 3px solid var(--border-hi);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow);
}
.phone-top {
  height: 20px;
  background: #020610;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch {
  width: 65px;
  height: 6px;
  background: var(--border-hi);
  border-radius: 3px;
}
.phone-frame img {
  width: 100%;
  display: block;
}
.phone-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.8rem;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 700;
}

/* APP SPLIT */
.app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.app-feats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.af-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
}
.af-item:hover {
  border-color: var(--border-hi);
}
.af-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-lt);
  flex-shrink: 0;
  font-size: 18px;
}
.af-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}
.af-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* INCIDENT GRID */
.inc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.inc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow);
}
.inc-card:hover {
  border-color: var(--alert);
  background: var(--alert-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}
.inc-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  margin: 0 auto 0.8rem;
  transition: transform 0.3s;
}
.inc-card:hover .inc-ico {
  transform: scale(1.1);
}
.inc-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(15% + 1.5rem);
  right: calc(15% + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lt) 50%, var(--primary));
  opacity: 0.25;
}
.step {
  text-align: center;
}
.step-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0f3ba8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.35);
  position: relative;
  z-index: 1;
}
.step-t {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-d {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* BROWSER FRAME */
.browser-frame {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: 0 20px 50px var(--shadow);
}
.browser-bar {
  background: var(--surface);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.browser-dots {
  display: flex;
  gap: 6px;
  margin-right: 8px;
}
.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.panel-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
}
.ptab {
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
}
.ptab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.ptab:hover:not(.active) {
  background: var(--border);
  color: var(--text);
}
.browser-img {
  width: 100%;
  display: block;
  transition: opacity 0.3s;
}
.panel-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.pf-item .check {
  color: var(--live);
  flex-shrink: 0;
  font-size: 14px;
}

/* 24/7 MONITOR PANEL (DYNAMIC HTML IN PANEL TABS) */
#monitoreoAdminPanel {
  display: none;
  background: var(--gradient-bg);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-console-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}
.cam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.cam-box {
  position: relative;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 16/9;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.cam-box:hover {
  border-color: var(--primary-lt);
}
.cam-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}
.cam-video-sim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  filter: contrast(1.1) saturate(0.9);
}
.cam-header {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}
.cam-status {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}
.cam-dot {
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}
@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}
.cam-name {
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.cam-grid-overlay {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
}

.admin-control-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 4px 20px var(--shadow);
}
.admin-sidebar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-staff-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.admin-staff-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.admin-details {
  flex: 1;
}
.admin-name {
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-role {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}
.admin-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  background: var(--live-dim);
  color: var(--live);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.admin-action-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  max-height: 140px;
  min-height: 100px;
  overflow-y: auto;
}
.admin-log-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  font-weight: 700;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
}
.admin-log-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
}
.admin-log-entry {
  padding: 2px 0;
  color: var(--text);
  line-height: 1.3;
}
.admin-log-time {
  color: var(--primary-lt);
  margin-right: 6px;
}
.admin-log-msg {
  font-weight: 500;
}

/* HARDWARE */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.hw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
}
.hw-card:hover {
  border-color: var(--primary-lt);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}
.hw-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin: 0 auto 1rem;
  transition: transform 0.3s;
}
.hw-card:hover .hw-ico {
  transform: scale(1.1);
}
.hw-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.hw-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

/* REMOTE */
.remote-banner {
  margin-top: 3rem;
  background: var(--card2);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 10px 30px var(--shadow);
}
.rb-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.rb-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
.rb-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.rb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
}
.rb-btn:hover {
  border-color: var(--border-hi);
}
.rb-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.rb-center {
  text-align: center;
}
.rb-center-ico {
  width: 82px;
  height: 82px;
  margin: 0 auto 0.8rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  box-shadow: 0 4px 15px var(--shadow);
}
.rb-mono {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-align: center;
  font-weight: 700;
}

/* CTA */
.cta-wrap {
  background: linear-gradient(145deg, #0f172a, var(--card));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow);
}
[data-theme="light"] .cta-wrap {
  background: linear-gradient(145deg, #ffffff, #edf3fe);
}
.cta-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
}
.cta-h {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
  position: relative;
}
.cta-p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  position: relative;
  line-height: 1.6;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  position: relative;
  flex-wrap: wrap;
}
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
}
.cc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-lt);
  flex-shrink: 0;
  font-size: 20px;
}
.cc-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 700;
  text-align: left;
}
.cc-val {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}
.cc-val a {
  color: var(--primary-lt);
  text-decoration: none;
}
.cc-val a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  box-shadow: 0 -4px 15px var(--shadow);
}
footer strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width:960px) {
  .hero-feed {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .app-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .steps::before {
    display: none;
  }
  .panel-features {
    grid-template-columns: 1fr 1fr;
  }
  .admin-console-grid {
    grid-template-columns: 1fr;
  }
  .remote-banner {
    grid-template-columns: 1fr;
  }
  .rb-center {
    display: none;
  }
  .cta-wrap {
    padding: 3rem 1.5rem;
  }
  .cta-contacts {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none;
  }
  .panel-features {
    grid-template-columns: 1fr;
  }
  .cam-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:560px) {
  .hero {
    padding: 90px 1.2rem 40px;
  }
  .hero-h1 {
    font-size: 2.8rem;
  }
  .sec {
    padding: 4rem 1.2rem;
  }
  .hw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inc-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .phones-row {
    gap: 0.6rem;
  }
  .phone-frame {
    width: 145px;
  }
}
