/* =========================================================
   Amnis Data Solution — stylesheet
   Palette (sampled from the logo):
     --ink        #182430  (near-black navy, dark backgrounds)
     --slate      #385F7F  (logo blue — secondary panels, headings)
     --purple     #7F30A4  (logo purple — primary accent)
     --purple-dim #692885  (accent hover)
     --paper      #FFFFFF  (page background)
     --mist       #EEF0F3  (light panel background)
     --ink-text   #1D2733  (body text on light)
     --paper-text #F4F5F7  (body text on dark)
   ========================================================= */

:root {
  --ink: #182430;
  --slate: #385F7F;
  --purple: #7F30A4;
  --purple-dim: #692885;
  --paper: #FFFFFF;
  --mist: #EEF0F3;
  --ink-text: #1D2733;
  --paper-text: #F4F5F7;
  --line: rgba(29, 39, 51, 0.13);
  --line-dark: rgba(244, 245, 247, 0.16);

  --display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; max-width: 62ch; }

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--purple);
  color: var(--purple);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-text);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-purple {
  background: var(--purple);
  color: #fff;
}
.btn-purple:hover { background: var(--purple-dim); }

.btn-outline-dark {
  border-color: var(--line-dark);
  color: var(--paper-text);
}
.btn-outline-dark:hover { border-color: var(--paper-text); }

.btn-outline-light {
  border-color: var(--line);
  color: var(--ink-text);
}
.btn-outline-light:hover { border-color: var(--ink-text); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper-text);
  position: relative;
  overflow: hidden;
}

.hero .container {
  padding-top: 108px;
  padding-bottom: 128px;
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  font-size: 15px;
  color: #9FC2DB;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  max-width: 14ch;
  color: var(--paper-text);
}

.hero .lede {
  font-size: 19px;
  color: #C4CBD3;
  max-width: 46ch;
  margin-top: 18px;
  margin-bottom: 34px;
}

.hero .actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-nodes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-nodes svg {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  height: 120%;
  width: auto;
  opacity: 0.9;
}

.node-line { stroke: var(--slate); stroke-width: 2; opacity: 0.65; }
.node-dot { fill: var(--slate); }
.node-dot.accent { fill: var(--purple); }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.section-head h2 { font-size: clamp(26px, 3vw, 34px); max-width: 20ch; }
.section-head .note { max-width: 34ch; color: #565F6A; font-size: 15px; margin: 0; }

/* ---------- Services ---------- */
.services {
  background: var(--mist);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service {
  padding: 8px 32px 8px 0;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.service:first-child { border-left: none; padding-left: 0; }

.service .node-mark {
  display: block;
  margin-bottom: 18px;
}

.service h3 { font-size: 20px; margin-bottom: 14px; color: var(--slate); }
.service p { font-size: 15px; color: #444C56; margin-bottom: 0; }

/* ---------- Approach / About ---------- */
.approach .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.approach h2 {
  font-size: clamp(26px, 3vw, 32px);
  max-width: 12ch;
  color: var(--ink-text);
}

.approach .name-note {
  font-size: 14px;
  color: #565F6A;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 32ch;
}

.approach .body p { font-size: 16.5px; color: #333A44; }
.approach .body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--slate);
  color: #fff;
}

.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
  max-width: 18ch;
  margin: 0;
}

.cta-band .btn-outline-dark { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-band .btn-outline-dark:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-text);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 22px;
}

.footer-top .brand img {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-top .sub { color: #9AA3AD; margin-top: 10px; max-width: 32ch; }

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.footer-nav a { color: #C4CBD3; font-size: 14.5px; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7C848D;
}

/* ---------- Contact page ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper-text);
  padding: 84px 0 64px;
}

.page-hero h1 { color: var(--paper-text); font-size: clamp(32px, 4.5vw, 46px); max-width: 16ch; }
.page-hero .lede { color: #C4CBD3; font-size: 17px; max-width: 48ch; margin-top: 14px; }

.contact-wrap .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3 {
  font-size: 15px;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-block { margin-bottom: 32px; }
.contact-block p { margin: 0; font-size: 16px; }
.contact-block .placeholder { color: #9A7FAE; font-style: italic; }

.contact-form .field {
  margin-bottom: 22px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #444C56;
}

.contact-form label .req { color: var(--purple); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-note {
  font-size: 13.5px;
  color: #565F6A;
  margin-top: 18px;
}

.form-status {
  margin-top: 18px;
  font-size: 15px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { color: var(--slate); }

/* ---------- FAQ ---------- */
.faq {
  background: var(--mist);
}

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--ink-text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .icon {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  color: var(--purple);
  flex-shrink: 0;
}

.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-item p {
  padding-bottom: 22px;
  margin: 0;
  font-size: 15px;
  color: #444C56;
  max-width: 68ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  body.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
  }

  body.nav-open .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .service { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .service:first-child { border-top: none; padding-top: 0; }

  .approach .container { grid-template-columns: 1fr; gap: 32px; }

  .contact-wrap .container { grid-template-columns: 1fr; gap: 48px; }

  .form-row { grid-template-columns: 1fr; }

  .cta-band .container { flex-direction: column; align-items: flex-start; }

  section { padding: 64px 0; }
}
