/* MonitorIQ Systems — site styles */
:root {
  --navy-900: #1c2630;
  --navy-800: #2a3744;
  --navy-700: #3e4c59;
  --steel-600: #4a5d70;
  --steel-400: #8a9aab;
  --steel-200: #d6dee6;
  --steel-100: #eef2f6;
  --white: #ffffff;
  --amber: #2693db;          /* MIQ logo blue */
  --amber-light: #6cc1f5;
  --amber-dark: #1a72b0;
  --green: #2fb36d;
  --red: #c63d3d;
  --text: #1a2633;
  --muted: #5b6b7b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10,29,48,.06), 0 6px 20px rgba(10,29,48,.06);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--amber-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber-dark); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-sm { color: var(--steel-400); font-size: .875rem; }
.fine { font-size: .85rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--steel-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); }
.logo-img { height: 38px; width: auto; flex: none; }
.brand-light .logo-img { height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; padding-left: 12px; border-left: 1px solid var(--steel-200); }
.brand-light .brand-text { border-left-color: rgba(255,255,255,.2); }
.brand-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: .5rem .8rem; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--steel-100); color: var(--navy-900); }
.site-nav a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--steel-200); display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--steel-100); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); padding-left: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8rem 1.3rem; border-radius: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; font-family: inherit; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--amber-dark); color: var(--white); }
.btn-primary:hover { background: #155d91; color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--steel-100); color: var(--navy-900); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { color: var(--navy-800); border-color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }

/* Eyebrows */
.eyebrow { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-dark); margin-bottom: .6rem; font-weight: 500; }
.eyebrow-light { color: var(--amber-light); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, #1f4f74 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: var(--white); padding: 72px 0 0; overflow: hidden; }
.hero h1 { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: #c9d6e3; max-width: 40em; margin-bottom: 1.8rem; }
.lead-sm { font-size: 1.1rem; color: var(--text); }
.hero-media img { border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: rgba(255,255,255,.1); border-top: 1px solid rgba(255,255,255,.1); padding: 0; }
.hero-stats > div { background: var(--navy-800); padding: 22px 20px; display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--mono); font-size: 1.5rem; color: var(--amber-light); }
.hero-stats span { color: #a9b9c9; font-size: .875rem; }

.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { margin-bottom: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--steel-100); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.cols-1 { grid-template-columns: 1fr; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card > .icon { width: 44px; height: 44px; padding: 9px; background: #e6f2fb; color: var(--amber-dark); border-radius: 9px; margin-bottom: 16px; }
.value h3, .benefit h3 { margin-bottom: .4em; }
.value p, .benefit p { color: var(--muted); font-size: .95rem; }

.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card-media { display: block; background: var(--steel-100); }
.product-card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .3s; }
.product-card:hover .product-card-media img { transform: scale(1.02); }
.product-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product-card-body > .btn, .product-card-body > .btn-row { margin-top: auto; }
.model { font-family: var(--mono); color: var(--amber-dark); font-weight: 500; letter-spacing: .05em; margin-bottom: .3rem; font-size: .9rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--white); border: 1px solid var(--steel-200); padding: .4rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.section-alt .chips li { background: var(--white); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.split-wide { grid-template-columns: 1.6fr 1fr; }
.cta-panel { background: var(--navy-800); color: #c9d6e3; border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-panel h3 { color: var(--white); font-size: 1.4rem; }
.cta-panel .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.cta-panel .btn-outline:hover { background: var(--white); color: var(--navy-900); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band p { margin: 0; color: var(--muted); }

/* Product page */
.product-hero { padding: 32px 0 64px; background: linear-gradient(180deg, var(--steel-100), var(--white)); }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-800); text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.product-intro h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.gallery { position: sticky; top: 90px; }
.gallery-main { border-radius: 12px; overflow: hidden; border: 1px solid var(--steel-200); background: var(--white); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid var(--steel-200); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--white); }
.thumb img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.thumb.is-active, .thumb:hover { border-color: var(--amber); }
.quick-specs { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--steel-200); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.quick-specs li { padding: 14px 10px; text-align: center; border-right: 1px solid var(--steel-200); }
.quick-specs li:last-child { border-right: 0; }
.quick-specs strong { display: block; font-family: var(--mono); color: var(--navy-800); font-size: 1.15rem; }
.quick-specs span { font-size: .78rem; color: var(--muted); }
.buy-box { background: var(--white); border: 1px solid var(--steel-200); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.buy-box .fine { flex-basis: 100%; margin: 6px 0 0; }

.subnav { position: sticky; top: 70px; z-index: 40; background: var(--navy-800); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { color: #c9d6e3; text-decoration: none; padding: 14px 14px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.subnav a:hover { color: var(--amber-light); }

.table-wrap { overflow-x: auto; border: 1px solid var(--steel-200); border-radius: var(--radius); background: var(--white); margin-bottom: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--steel-200); vertical-align: top; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody th { font-weight: 600; color: var(--steel-600); width: 45%; }
.spec-table tbody tr:nth-child(even) { background: #f7f9fb; }
.compare-table thead th { background: var(--navy-800); color: var(--white); font-weight: 700; }
.compare-table thead th:not(:first-child) { font-family: var(--mono); color: var(--amber-light); }
.compare-table tbody th { width: 30%; }

.info-box { background: var(--steel-100); border: 1px solid var(--steel-200); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.section-alt .info-box { background: var(--white); }
.info-box .btn { margin: 4px 6px 4px 0; }
.kv { margin: 0 0 1rem; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--steel-200); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv-stack > div { flex-direction: column; gap: 2px; }
.kv-stack dd { text-align: left; font-family: var(--mono); font-size: .9rem; word-break: break-all; }

.config { position: relative; }
.tag { display: inline-block; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: var(--navy-800); color: var(--amber-light); padding: .25rem .6rem; border-radius: 4px; margin-bottom: 12px; }
.callout { background: #eef5fc; border: 1px solid #c8dcf0; border-left: 4px solid var(--navy-700); padding: 16px 20px; border-radius: 8px; margin: 24px 0; }
.callout-warn { background: #fff8e6; border-color: #f5dd9a; border-left-color: #e0a000; }

.notice { border: 1px solid var(--steel-200); border-radius: var(--radius); padding: 32px; background: var(--white); }
.notice h2 { font-size: 1.35rem; }
.notice p { color: var(--steel-600); }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.dl-group { margin-bottom: 40px; }
.dl-group h2 { font-size: 1.3rem; font-family: var(--mono); color: var(--navy-800); }
.doc-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--steel-200); border-radius: 8px; padding: 14px 16px; }
.doc > .icon { color: var(--navy-700); flex: none; }
.doc > div { flex: 1; display: flex; flex-direction: column; }
.doc > div span { font-size: .82rem; color: var(--muted); }
.badge { font-size: .75rem; font-weight: 700; background: var(--steel-100); color: var(--steel-600); padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; border: 1px solid var(--steel-200); }
#docs .doc-list { grid-template-columns: repeat(2, 1fr); }

/* Prose */
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #33414f; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid #bfcad6; border-radius: 8px; background: var(--white); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(38,147,219,.3); }
.form .is-invalid { border-color: var(--red); }
.form button { justify-self: start; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: #e7f7ee; color: #17633b; border: 1px solid #b6e4c9; }
.form-status.err { background: #fdecec; color: #8e2424; border: 1px solid #f3c1c1; }

/* Footer */
.site-footer { background: var(--navy-900); color: #a9b9c9; padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h3 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #c9d6e3; text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }
.brand-light { color: var(--white); margin-bottom: 16px; }
.brand-light .brand-text small { color: var(--steel-400); }
.footer-brand strong { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-links a { margin: 0 2px; }

/* Responsive */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid, .product-grid, .split, .split-wide, .contact-grid, .dl-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .cols-2 { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  #docs .doc-list { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quick-specs { grid-template-columns: repeat(2, 1fr); }
  .quick-specs li:nth-child(2) { border-right: 0; }
  .quick-specs li:nth-child(-n+2) { border-bottom: 1px solid var(--steel-200); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .spec-table th, .spec-table td { padding: 10px 12px; }
  .spec-table tbody th { width: 50%; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .subnav, .site-footer, .buy-box, .gallery-thumbs { display: none; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
}

/* PLC brand independence emphasis */
.pill { display: inline-block; margin-left: 8px; font-family: var(--font); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--white); background: var(--amber-dark); padding: .2rem .55rem; border-radius: 999px; vertical-align: middle; }
.brand-indep { display: flex; gap: 16px; align-items: flex-start; background: #e9f4fc; border: 1px solid #bcdcf3; border-left: 5px solid var(--amber-dark); border-radius: var(--radius); padding: 18px 20px; margin: 1.2rem 0; }
.brand-indep > .icon { width: 44px; height: 44px; flex: none; padding: 9px; background: var(--amber-dark); color: var(--white); border-radius: 9px; }
.brand-indep h2 { font-size: 1.1rem; margin: 0 0 .3em; color: var(--navy-900); }
.brand-indep p { margin: 0; font-size: .95rem; color: #2c3c4b; }
.feature-wide { grid-column: span 2; display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, #e9f4fc, #ffffff); border-color: #bcdcf3; border-left: 5px solid var(--amber-dark); }
.card.feature-wide > .icon { flex: none; background: var(--amber-dark); color: var(--white); margin: 0; width: 52px; height: 52px; padding: 11px; }
.feature-wide h3 { font-size: 1.35rem; }
.feature-wide p { font-size: 1rem; color: #2c3c4b; }
@media (max-width: 560px) {
  .feature-wide { grid-column: auto; flex-direction: column; }
  .brand-indep { flex-direction: column; }
}

/* 3D model viewer */
.viewer3d { position: relative; border: 1px solid var(--steel-200); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #ffffff, #eef2f6); box-shadow: var(--shadow); }
.viewer3d model-viewer { width: 100%; height: clamp(320px, 56vw, 560px); display: block; --poster-color: transparent; }
.viewer3d-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.viewer3d-reset { position: absolute; right: 14px; bottom: 14px; background: var(--white); }

.dl-note { margin: -16px 0 40px; }
