/* ==========================================================================
   MQi Limited — SiBR Solutions
   Design tokens
   ========================================================================== */

:root {
  /* Colour */
  --ink:        #0B1F33;  /* deep navy — headings, header, footer */
  --ink-soft:   #16324F;
  --slate:      #4A5D70;  /* body text on light */
  --steel:      #D8DEE5;  /* hairlines, borders */
  --paper:      #F4F7FA;  /* section tint */
  --white:      #FFFFFF;
  --signed:     #0E7C66;  /* approved / released / e-signature */
  --inprocess:  #B26A00;  /* in process */
  --focus:      #2C7BE5;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: 1.5rem;
  --max: 1180px;
  --section-y: clamp(4rem, 8vw, 7.5rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signed); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Eyebrow label — mono, used to name the kind of content that follows */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signed);
  margin: 0 0 1rem;
  display: block;
}
.eyebrow--muted { color: var(--slate); }

.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.measure { max-width: 68ch; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--signed);
  color: var(--white);
  border-color: var(--signed);
}
.btn--primary:hover { background: #0a6252; border-color: #0a6252; color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--steel);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }

.btn--onink {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--onink:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--steel);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__word em { font-style: normal; color: var(--signed); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel);
  border-radius: 3px;
  padding: 0.5rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--steel); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--signed); }
.site-nav .btn { border-bottom: none; }
.site-nav .btn:hover { border-bottom: 1px solid; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--steel);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--steel);
  }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* faint process-grid, drawn from shop-floor drawings */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero h1 { color: var(--white); max-width: 16ch; }
.hero .eyebrow { color: #6FD8BE; }
.hero .lede { color: rgba(255,255,255,0.8); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Page hero (interior pages) */
.pagehead {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.pagehead h1 { color: var(--white); }
.pagehead .lede { color: rgba(255,255,255,0.8); }
.pagehead .eyebrow { color: #6FD8BE; }

/* ==========================================================================
   Signature element — the electronic batch record
   ========================================================================== */

.ebr {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.ebr__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--steel);
  padding: 0.75rem 1rem;
}
.ebr__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.ebr__id { color: var(--slate); font-size: 0.75rem; letter-spacing: 0.06em; }

.ebr__row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--steel);
}
.ebr__row:last-child { border-bottom: 0; }

.ebr__no { color: #93A2B0; }
.ebr__step { color: var(--ink); font-family: var(--body); font-size: 0.9375rem; line-height: 1.3; }
.ebr__param { display: block; color: var(--slate); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; }

.ebr__state {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  border: 1px solid;
}
.is-inprocess { color: var(--inprocess); border-color: rgba(178,106,0,0.35); background: rgba(178,106,0,0.06); }
.is-signed    { color: var(--signed);    border-color: rgba(14,124,102,0.35); background: rgba(14,124,102,0.07); }
.is-exception { color: #B3261E;          border-color: rgba(179,38,30,0.35);  background: rgba(179,38,30,0.06); }

.ebr__foot {
  background: var(--paper);
  border-top: 1px solid var(--steel);
  padding: 0.7rem 1rem;
  color: var(--slate);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* the reveal: rows resolve from in-process to signed on load */
.ebr__row .ebr__state { transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper); }
.section--ink { background: var(--ink); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink { color: rgba(255,255,255,0.78); }
.section--ink .eyebrow { color: #6FD8BE; }

.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.rule {
  border: 0;
  border-top: 1px solid var(--steel);
  margin: 0;
}

/* Card grid */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: 4px;
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1rem; }
.card__tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signed);
  display: block;
  margin-bottom: 0.75rem;
}

/* Two-column feature block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Definition list used for spec-style facts */
.specs { margin: 0; }
.specs div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--steel);
}
.specs dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.2rem;
}
.specs dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) {
  .specs div { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Image / screenshot frame */
.shot {
  border: 1px solid var(--steel);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
}
.shot img { width: 100%; }
.shot figcaption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--steel);
  background: var(--white);
}

/* Placeholder marker — replace before going live */
.placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    repeating-linear-gradient(45deg, #EDF1F5 0 12px, #F6F8FA 12px 24px);
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1.5rem;
}

/* Logo wall */
.logowall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
  border-radius: 4px;
  overflow: hidden;
}
.logowall > * {
  background: var(--white);
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 1.25rem;
}
.logowall img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.75; }

/* Quote */
.quote {
  border-left: 3px solid var(--signed);
  padding-left: 1.75rem;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quote figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band h2 { color: var(--white); max-width: 20ch; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--focus); }
.field textarea { min-height: 8rem; resize: vertical; }
.form__note { font-size: 0.875rem; color: var(--slate); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding-block: 3.5rem 2rem;
  font-size: 0.9375rem;
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.site-footer__base {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

.site-footer .brand__word { color: var(--white); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* footer white + cta contrast */
.site-footer{background:#fff;color:#33404c;border-top:1px solid var(--steel)}
.site-footer a{color:var(--ink-soft)}
.site-footer a:hover{color:var(--ink)}
.site-footer h4{color:var(--slate)}
.site-footer p{color:#33404c}
.site-footer__base{border-top:1px solid var(--steel);color:var(--slate)}
.site-footer .brand img{height:48px}
.cta-band h2{color:#fff}
.cta-band .lede{color:rgba(255,255,255,.92)}

/* ---- hero background video ---- */
.hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero__scrim{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg, rgba(9,20,33,.82) 0%, rgba(9,20,33,.44) 50%, rgba(9,20,33,.10) 100%), linear-gradient(rgba(9,20,33,0) 55%, rgba(9,20,33,.42) 100%)}
.hero::after{z-index:1}
.hero > .wrap{z-index:2}

/* ---- assets wired in ---- */
.brand img{height:42px;width:auto}
.shot__img{width:100%;height:auto;display:block;border-radius:10px}
.product-logo{height:34px;width:auto;background:#fff;padding:9px 14px;border-radius:8px;margin-bottom:1.15rem;box-shadow:0 2px 6px rgba(0,0,0,.18);display:inline-block}
.proof-statement{font-size:1.15rem;line-height:1.55;max-width:60ch;margin:0 auto;text-align:center;color:var(--ink)}
.proof-statement b{color:var(--signed,#0a7a5c)}
.site-footer .brand img{height:40px}
.about-brandblock{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--steel);border-radius:14px;padding:3rem;min-height:260px}
.about-brandblock img{max-width:100%;height:auto}
