/* ============================================================
   Autoscan Systems — site stylesheet
   ============================================================ */
:root {
  --navy-950: #081120;
  --navy-900: #0b1a2e;
  --navy-800: #11253f;
  --navy-700: #1a3355;
  --blue-500: #2f6fad;
  --blue-400: #4a8cc9;
  --blue-300: #8db9e2;
  --amber-500: #e0a144;
  --amber-400: #ecb765;
  --sand-100: #f6f3ed;
  --sand-200: #ede8de;
  --ink-900: #17222e;
  --ink-600: #46586a;
  --ink-400: #7a8a9a;
  --line: #dde4ea;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 38, .08);
  --shadow-md: 0 6px 24px rgba(10, 22, 38, .12);
  --maxw: 1180px;
  --font-head: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 14px;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: #b9c7d6;
  font-size: .8rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #d9e4ef; }
.topbar a:hover { color: var(--amber-400); }
.topbar .tb-right { display: flex; gap: 22px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-tagline {
  font-family: var(--font-head); font-weight: 600; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400);
  padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.3;
}
.foot-brand .brand-tagline { color: #7c8fa4; border-left-color: #1b2c42; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: block; padding: 10px 14px; font-weight: 500; font-size: .95rem;
  color: var(--ink-900); border-radius: 8px;
}
.main-nav > li > a:hover, .main-nav > li.open > a { background: var(--sand-100); color: var(--navy-900); }
.main-nav > li > a.active { color: var(--blue-500); }
.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 7px;
  border: solid var(--ink-400); border-width: 0 1.6px 1.6px 0;
  padding: 2.6px; transform: rotate(45deg) translateY(-2px);
}
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.main-nav li:hover > .submenu, .main-nav li.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 9px 14px; border-radius: 8px; font-size: .92rem; color: var(--ink-900); }
.submenu li a:hover { background: var(--sand-100); color: var(--navy-900); }
.submenu li a small { display: block; color: var(--ink-400); font-size: .78rem; }

.nav-cta {
  margin-left: 10px;
  background: var(--navy-900); color: #fff !important;
  padding: 10px 20px !important; border-radius: 999px !important; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-500) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.hero .hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,17,32,.94) 25%, rgba(8,17,32,.55) 60%, rgba(8,17,32,.25));
}
.hero .container { position: relative; padding-top: 110px; padding-bottom: 110px; max-width: var(--maxw); }
.hero h1 { color: #fff; max-width: 700px; margin-bottom: 20px; }
.hero p.lead { font-size: 1.18rem; color: #cddaea; max-width: 640px; margin-bottom: 34px; }
.hero .eyebrow { color: var(--amber-400); }

.page-hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.page-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-hero .hero-grad { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,17,32,.95) 30%, rgba(8,17,32,.5)); }
.page-hero .container { position: relative; padding-top: 66px; padding-bottom: 60px; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p.lead { color: #c6d5e6; max-width: 700px; margin-top: 14px; font-size: 1.08rem; }
.breadcrumb { font-size: .82rem; color: #92a7bd; margin-bottom: 18px; }
.breadcrumb a { color: #b9cde2; }
.breadcrumb a:hover { color: var(--amber-400); }
.breadcrumb span::before { content: "/"; margin: 0 8px; color: #55708c; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: 13px 28px; border-radius: 999px; font-size: .95rem;
  transition: all .18s ease; cursor: pointer; border: 0;
}
.btn-primary { background: var(--amber-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-400); color: var(--navy-950); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; margin-left: 12px; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--blue-500); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--sand-100); }
.section.dark { background: var(--navy-900); color: #c9d7e6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-600); margin-top: 12px; font-size: 1.05rem; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c8d4df; }
.card .card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--sand-200); }
.card .card-img.contain { object-fit: contain; padding: 18px; }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--ink-600); font-size: .95rem; flex: 1; }
.card-link { margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--blue-500); }
.card-link::after { content: " →"; }
.card .tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-500); background: #e8f1f9;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--amber-400); line-height: 1; }
.stat .lbl { font-size: .88rem; color: #9fb3c8; margin-top: 8px; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .split-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--ink-600); margin-bottom: 14px; }

/* ---------- checklist / feature list ---------- */
.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 13px; color: var(--ink-600); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: #e8f1f9; color: var(--blue-500);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.checklist li strong { color: var(--ink-900); }

/* ---------- article / prose ---------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 18px; color: var(--ink-600); }
.prose p strong, .prose li strong { color: var(--ink-900); }
.prose h2 { margin: 42px 0 16px; }
.prose h3 { margin: 34px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--ink-600); }
.prose li { margin-bottom: 9px; }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose figcaption { font-size: .85rem; color: var(--ink-400); margin-top: 10px; text-align: center; }
.prose blockquote {
  border-left: 3px solid var(--amber-500); padding: 4px 0 4px 22px; margin: 26px 0;
  color: var(--ink-600); font-style: italic;
}

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start; }
.sidebar .side-box {
  background: var(--sand-100); border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
  border: 1px solid var(--sand-200);
}
.sidebar .side-box h3 { font-size: 1.02rem; margin-bottom: 14px; }
.sidebar .side-box ul { list-style: none; }
.sidebar .side-box li { margin-bottom: 10px; font-size: .92rem; }
.sidebar .side-box p { font-size: .92rem; color: var(--ink-600); margin-bottom: 10px; }

/* ---------- spec tables ---------- */
.spec-table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.spec th {
  text-align: left; background: var(--navy-900); color: #fff; padding: 13px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .04em;
}
table.spec td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-600); }
table.spec td:first-child { color: var(--ink-900); }
table.spec td.pn { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .82rem; white-space: nowrap; color: var(--ink-400); }
table.spec tr.group td {
  background: var(--sand-100); font-family: var(--font-head); font-weight: 600; color: var(--navy-800);
  font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
}
table.spec tr:hover td { background: #fafbfc; }
table.spec tr.group:hover td { background: var(--sand-100); }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem; color: var(--navy-900); list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--sand-100);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--blue-500); transition: .2s;
}
.faq-item[open] summary::after { content: "–"; background: var(--navy-900); color: #fff; }
.faq-item .faq-body { padding: 0 24px 24px; color: var(--ink-600); }
.faq-item .faq-body p { margin-bottom: 14px; }
.faq-item .faq-body ul, .faq-item .faq-body ol { margin: 0 0 14px 22px; }
.faq-item .faq-body li { margin-bottom: 8px; }

/* ---------- downloads ---------- */
.dl-list { list-style: none; }
.dl-list li { margin-bottom: 12px; }
.dl-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .18s;
}
.dl-list a:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); }
.dl-list .dl-icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--sand-100);
  display: grid; place-items: center; font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  color: var(--navy-800); letter-spacing: .04em;
}
.dl-list .dl-name { font-weight: 600; color: var(--ink-900); font-size: .95rem; }
.dl-list .dl-meta { font-size: .8rem; color: var(--ink-400); }

/* ---------- news ---------- */
.news-item { border-bottom: 1px solid var(--line); padding: 34px 0; }
.news-item:first-child { padding-top: 0; }
.news-date {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber-500); margin-bottom: 8px;
}
.news-item h3 { margin-bottom: 10px; }
.news-item p { color: var(--ink-600); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-700)); color: #fff; }
.cta-band .container { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #b9cbdd; }
.cta-band .cta-actions { text-align: right; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #93a7bb; font-size: .92rem; }
.site-footer .foot-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #93a7bb; }
.site-footer a:hover { color: var(--amber-400); }
.site-footer .foot-brand p { margin-top: 14px; max-width: 320px; line-height: 1.6; }
.site-footer .foot-bottom {
  border-top: 1px solid #1b2c42; padding: 20px 0; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #607690;
}

/* ---------- misc ---------- */
.note {
  background: #fdf6ea; border: 1px solid #f0dcb4; border-radius: 12px;
  padding: 18px 22px; margin: 24px 0; color: #6b5626; font-size: .95rem;
}
.note strong { color: #4d3d15; }
.img-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 26px 0; }
.img-row figure { margin: 0; }
.img-row img { border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.img-row figcaption { font-size: .8rem; color: var(--ink-400); margin-top: 8px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .layout-sidebar, .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .cta-actions { text-align: left; }
  .site-footer .foot-main { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 20px 24px; gap: 2px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > li > a { padding: 14px 10px; font-size: 1.05rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 8px 18px; display: none; min-width: 0;
  }
  .main-nav li.open > .submenu { display: block; }
  .nav-cta { margin: 14px 10px 0; text-align: center; }
  .topbar .tb-right { display: none; }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero .container { padding-top: 72px; padding-bottom: 72px; }
  .section { padding: 60px 0; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .site-footer .foot-main { grid-template-columns: 1fr; }
}
