:root {
  --navy: #0b1f33;
  --blue: #0078ff;
  --cyan: #00d7ff;
  --amber: #ffb000;
  --ink: #132238;
  --muted: #5d6b7c;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --line: #dbe5ef;
  --shadow: 0 24px 70px rgba(11, 31, 51, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 78px; padding: 12px clamp(20px, 5vw, 76px); background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(219,229,239,.8); backdrop-filter: blur(16px);
}
.brand img { width: 210px; }
.main-nav { display: flex; align-items: center; gap: 1.45rem; font-weight: 700; font-size: .94rem; }
.main-nav a:hover { color: var(--blue); }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; padding: 9px 13px; border-radius: 10px; }
.cart-button { border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 800; }
.cart-button span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; background: var(--cyan); color: var(--navy); }

.hero {
  position: relative; overflow: hidden; min-height: 680px; padding: clamp(70px, 9vw, 130px) clamp(20px, 7vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: clamp(40px, 8vw, 110px);
  color: #fff; background: radial-gradient(circle at 82% 16%, rgba(0,215,255,.20), transparent 30%), linear-gradient(135deg, #071522 0%, #0b1f33 60%, #0a3159 100%);
}
.hero::after { content: ""; position: absolute; inset: auto -12% -55% 38%; height: 620px; border: 1px solid rgba(0,215,255,.16); border-radius: 50%; transform: rotate(-12deg); }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.hero-copy > p { max-width: 690px; color: #d5e4f2; font-size: clamp(1.04rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 12px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #03111e; background: linear-gradient(135deg, var(--cyan), #58e6ff); box-shadow: 0 13px 34px rgba(0,215,255,.22); }
.button.secondary { color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22); }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 0; list-style: none; color: #c9d8e6; font-weight: 700; }
.hero-points li::before { content: "✓"; margin-right: 8px; color: var(--cyan); }

.monitor-card { padding: 18px; border: 1px solid rgba(0,215,255,.22); border-radius: 26px; background: rgba(3,15,27,.72); box-shadow: 0 36px 90px rgba(0,0,0,.34); transform: perspective(900px) rotateY(-7deg) rotateX(2deg); }
.monitor-top { display: flex; gap: 7px; margin-bottom: 14px; }
.monitor-top span { width: 10px; height: 10px; border-radius: 50%; background: #24415c; }
.monitor-top span:first-child { background: var(--amber); }
.camera-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.camera-grid div { min-height: 150px; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; border-radius: 15px; color: #d8e7f4; background: linear-gradient(135deg, rgba(0,120,255,.28), rgba(0,215,255,.05)), repeating-linear-gradient(130deg, #102a40 0 12px, #0c2236 12px 24px); font-size: .8rem; }
.camera-grid b { color: var(--cyan); font-size: .66rem; }
.signal-line { height: 3px; margin-top: 14px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 18px var(--cyan); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.trust-strip div { padding: 30px clamp(22px, 5vw, 70px); background: #fff; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { margin-bottom: 5px; color: var(--navy); font-size: 1.1rem; }
.trust-strip span { color: var(--muted); font-size: .92rem; }

.section { padding: clamp(76px, 10vw, 130px) clamp(20px, 7vw, 110px); }
.section-heading { max-width: 820px; margin-bottom: 46px; }
.section-heading p, .split-heading > p { color: var(--muted); font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.service-grid, .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-grid article, .product-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 35px rgba(11,31,51,.05); }
.service-grid article { padding: 30px; }
.service-grid article > span { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 15px; background: var(--soft); font-size: 1.55rem; }
.service-grid h3, .product-card h3 { margin-bottom: 9px; color: var(--navy); font-size: 1.18rem; }
.service-grid p, .product-card p { color: var(--muted); }

.products-section { background: var(--soft); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter-button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 800; }
.filter-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-icon { min-height: 170px; display: grid; place-items: center; background: linear-gradient(145deg, #0b1f33, #0f3a62); font-size: 4.8rem; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.product-category { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-card p { flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.product-price { color: var(--navy); font-size: 1.28rem; font-weight: 900; }
.add-button { padding: 9px 14px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 900; }
.loading { grid-column: 1 / -1; color: var(--muted); }

.steps { background: var(--navy); color: #fff; }
.steps .eyebrow { color: var(--cyan); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; list-style: none; }
.step-grid li { padding: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.step-grid li > span { display: block; margin-bottom: 36px; color: var(--cyan); font-weight: 900; }
.step-grid p { color: #bcd0e0; }

.quote-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 8vw, 100px); background: #fff; }
.contact-card { display: grid; gap: 6px; margin-top: 30px; padding: 24px; border-radius: 18px; background: var(--soft); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
label { display: grid; gap: 7px; color: var(--navy); font-size: .9rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #cbd8e5; border-radius: 10px; padding: 12px 13px; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,120,255,.13); border-color: var(--blue); }
.full { grid-column: 1 / -1; }
.form-status { min-height: 24px; margin: 0; color: var(--blue); font-weight: 800; }

.cart-drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(470px, 100%); height: 100dvh; overflow-y: auto; padding: 24px; background: #fff; box-shadow: -25px 0 70px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .25s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; }
.cart-header button { border: 0; background: none; font-size: 2rem; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item strong, .cart-item span { display: block; }
.quantity-controls { display: flex; align-items: center; gap: 8px; }
.quantity-controls button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cart-total { display: flex; justify-content: space-between; padding: 22px 0; font-size: 1.12rem; }
.order-form { display: grid; gap: 13px; }
.drawer-backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(3,12,20,.58); }
.floating-whatsapp { position: fixed; z-index: 30; right: 22px; bottom: 22px; padding: 13px 18px; border-radius: 999px; background: #16a761; color: #fff; font-weight: 900; box-shadow: 0 12px 30px rgba(22,167,97,.3); }

.site-footer { display: grid; gap: 16px; padding: 55px clamp(20px, 7vw, 110px); color: #bdd0df; background: #071522; }
.site-footer img { width: 210px; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer small { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }

.admin-shell { min-height: 100vh; padding: 35px clamp(18px, 5vw, 70px); background: var(--soft); }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-header img { width: 190px; }
.admin-panel { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table button { margin-right: 5px; border: 0; border-radius: 7px; padding: 6px 9px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.admin-tabs button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 9px 14px; font-weight: 800; }
.admin-tabs button.active { background: var(--navy); color: #fff; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 700px; }
  .service-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-section, .split-heading { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand img { width: 165px; }
  .hero { min-height: auto; padding-top: 65px; }
  .camera-grid div { min-height: 105px; }
  .trust-strip, .service-grid, .product-grid, .step-grid, .quote-form, .admin-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 0; }
  .quote-form { padding: 20px; }
  .full { grid-column: auto; }
  .product-footer { align-items: flex-start; flex-direction: column; }
  .add-button { width: 100%; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-table { display: block; overflow-x: auto; }
}
