/* ScanMan — rebuilt static site
   Aesthetic: warehouse-industrial. Signal-green scan accent (sampled straight
   from the ScanMan logo mark), graphite steel, monospaced data type for the
   "scanned" feel. */

:root {
  --ink:        #14171c;
  --steel:      #23272f;
  --steel-2:    #2d323c;
  --line:       #3a404b;
  --paper:      #f4f5f2;
  --paper-2:    #e8eae4;
  --mute:       #6b7280;
  --mute-2:     #9aa1ab;
  --scan:       #8cc63f;   /* signal green — the lime tone in the logo mark */
  --scan-deep:  #279141;   /* deeper logo green — text/hover emphasis */
  --live:       #35d07f;   /* status green */
  --white:      #ffffff;
  --shadow:     0 1px 2px rgba(20,23,28,.06), 0 8px 30px rgba(20,23,28,.08);
  --radius:     14px;
  --maxw:       1120px;
  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--scan-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--scan-deep);
  display: inline-block;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,23,28,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo {
  height: 34px; width: auto; display: block;
  background: var(--white); border-radius: 8px;
  padding: 6px 10px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--mute-2);
  padding: 9px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--ink); background: var(--scan); }

.nav-links a.nav-hot {
  color: var(--ink); background: var(--scan); font-weight: 700;
  box-shadow: 0 0 0 0 rgba(140,198,63,.5);
  animation: hot-pulse 2.4s ease-in-out infinite;
}
.nav-links a.nav-hot:hover { color: var(--ink); background: var(--scan); filter: brightness(1.08); }
@keyframes hot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(140,198,63,.45); }
  50% { box-shadow: 0 0 0 6px rgba(140,198,63,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a.nav-hot { animation: none; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; color: var(--ink); background: var(--scan);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
  animation: hot-pulse 2.4s ease-in-out infinite;
}
.hero-badge:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}

/* cycling image swatch (e.g. label samples) */
.label-cycle {
  position: relative; width: 100%; max-width: 200px; aspect-ratio: 3 / 4;
  margin: 0 auto; background: var(--white); border: 1px solid var(--paper-2);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.label-cycle img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 14px; opacity: 0;
  animation: label-fade 9s ease-in-out infinite;
}
.label-cycle img:nth-child(2) { animation-delay: 4.5s; }
@keyframes label-fade {
  0%, 100% { opacity: 0; }
  4%, 46% { opacity: 1; }
  52% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .label-cycle img { animation: none; opacity: 0; }
  .label-cycle img:first-child { opacity: 1; }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-scan { background: var(--scan); color: var(--ink); box-shadow: 0 6px 20px rgba(46,158,68,.3); }
.btn-scan:hover { box-shadow: 0 10px 28px rgba(46,158,68,.4); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--scan); color: var(--scan); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--steel); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 96px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,64,75,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,64,75,.35) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--scan); }
.hero-lede { font-size: 1.2rem; color: var(--mute-2); max-width: 34ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 34px; margin-top: 46px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats .num { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--scan); }
.hero-stats .lbl { font-size: 12.5px; color: var(--mute-2); letter-spacing: .02em; }

/* scanner visual */
.hero-visual { position: relative; }
.scan-card {
  background: var(--steel); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.scan-card .bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--mute-2);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.scan-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(53,208,127,.18); }
.scan-window {
  position: relative; background: #0e1013; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.scan-beam {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--scan); box-shadow: 0 0 14px 2px var(--scan);
  animation: sweep 2.6s ease-in-out infinite;
}
@keyframes sweep { 0%,100% { top: 12%; } 50% { top: 86%; } }
.scan-rows { padding: 16px; font-family: var(--font-mono); font-size: 12.5px; }
.scan-rows .r { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--mute-2); }
.scan-rows .r:last-child { border-bottom: 0; }
.scan-rows .r b { color: var(--scan); font-weight: 500; }
.scan-rows .r .ok { color: var(--live); }

@media (prefers-reduced-motion: reduce) {
  .scan-beam { animation: none; top: 50%; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--mute); }

.panel-dark { background: var(--ink); color: var(--white); }
.panel-dark h2, .panel-dark h3 { color: var(--white); }
.panel-dark .lead { color: var(--mute-2); }
.panel-steel { background: var(--paper-2); }

/* feature grid */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--paper-2);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(20,23,28,.12); }
.card .ic { width: 46px; height: 46px; margin-bottom: 16px; object-fit: contain; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--mute); font-size: 15px; margin: 0; }

.panel-dark .card {
  background: var(--steel); border-color: var(--line);
}
.panel-dark .card p { color: var(--mute-2); }

/* numbered process */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step {
  background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.step .n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--scan);
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 12px; }
.step ol { margin: 0; padding-left: 18px; color: var(--mute); font-size: 14.5px; }
.step ol li { margin-bottom: 6px; }

/* split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media {
  background: var(--paper-2); border-radius: var(--radius);
  border: 1px solid var(--paper-2); padding: 30px; box-shadow: var(--shadow);
}
.panel-dark .split-media { background: var(--steel); border-color: var(--line); }
.split-media.photo { padding: 0; overflow: hidden; line-height: 0; }
.split-media.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 1px); }
.split-media.bare { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* real product / brand photography band */
.photo-band { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.photo-band img { width: 100%; display: block; }
.photo-caption { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px 0; font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: .03em; }

/* white diagram / workflow graphic band */
.diagram-band { background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); margin-top: 40px; text-align: center; }
.diagram-band img { max-width: 560px; margin: 0 auto; }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 9px 0;
  font-size: 15px; color: var(--mute);
}
.panel-dark .feature-list li { color: var(--mute-2); }
.feature-list li::before {
  content: ""; flex: 0 0 auto; margin-top: 7px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--scan);
}
.feature-list li b { color: inherit; }
.panel-dark .feature-list li b { color: var(--white); }

/* checklist inline */
.checks { list-style: none; margin: 20px 0 0; padding: 0; columns: 2; column-gap: 30px; }
.checks li { break-inside: avoid; padding: 7px 0 7px 28px; position: relative; font-size: 15px; color: var(--mute); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 16px; height: 9px; border-left: 2.5px solid var(--live); border-bottom: 2.5px solid var(--live);
  transform: rotate(-45deg);
}

/* quote */
.quote-band { background: var(--steel); color: var(--white); }
.quote {
  max-width: 44ch; margin: 0 auto; text-align: center;
}
.quote .mark { font-family: var(--font-mono); color: var(--scan); font-size: 40px; line-height: 1; }
.quote blockquote { font-size: clamp(1.3rem,2.6vw,1.7rem); font-weight: 600; letter-spacing: -.01em; margin: 8px 0 20px; }
.quote cite { font-family: var(--font-mono); font-size: 13px; color: var(--mute-2); font-style: normal; letter-spacing: .04em; }

/* spec table */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.spec-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--paper-2);
}
.spec-row dt { font-weight: 600; font-size: 14.5px; }
.spec-row dd { margin: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--mute); text-align: right; }

/* CTA band */
.cta-band { background: var(--scan); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); max-width: 20ch; margin: 0; }
.cta-band p { color: rgba(20,23,28,.72); margin: 8px 0 0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--paper-2); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: var(--white); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--scan-deep); box-shadow: 0 0 0 3px rgba(140,198,63,.28); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-card {
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px;
}
.contact-card h3 { color: var(--white); }
.contact-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--scan); margin-bottom: 5px; }
.contact-item .v { color: var(--mute-2); font-size: 15px; }
.contact-item a.v:hover { color: var(--white); }
.form-note { font-size: 13px; color: var(--mute); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mute-2); padding: 56px 0 30px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--mute-2); }
.footer-links a:hover { color: var(--scan); }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; transition: border-color .15s, background .15s; }
.social a:hover { border-color: var(--scan); background: rgba(140,198,63,.1); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .03em; }

/* page hero (interior) */
.page-hero { background: var(--ink); color: var(--white); padding: 84px 0 72px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(58,64,75,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(58,64,75,.3) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 20%, transparent 70%); opacity: .5;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: var(--mute-2); max-width: 52ch; }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.crumbs a:hover { color: var(--scan); }

/* device illustration */
.device { display: grid; place-items: center; }

/* in-page sub-nav (long feature pages) */
.page-subnav {
  background: var(--white); border-bottom: 1px solid var(--paper-2);
  position: sticky; top: 70px; z-index: 40;
}
.page-subnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.page-subnav a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mute); padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  transition: color .15s, background .15s; flex: 0 0 auto;
}
.page-subnav a:hover { color: var(--ink); background: var(--paper-2); }
section[id] { scroll-margin-top: 122px; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .g-3, .steps, .specs { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .checks { columns: 1; }
  .hero-visual { max-width: 460px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}
