:root {
  color-scheme: light;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --surface-strong: #eef4f7;
  --ink: #101820;
  --muted: #5e6c79;
  --line: #d7e1ea;
  --line-strong: #b9c8d5;
  --cyan: #19bfd6;
  --green: #31c47a;
  --amber: #f3b43f;
  --coral: #ee6b45;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber), var(--coral));
  z-index: 20;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(25, 191, 214, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 1.15rem 0 1rem;
  background: rgba(247, 249, 251, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: min(300px, 54vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav a {
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

main,
.footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 2rem;
  align-items: stretch;
  padding: 3.5rem 0 4.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #286373;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.92;
  font-weight: 850;
}

.hero-dek {
  max-width: 780px;
  margin: 1.65rem 0 0;
  color: #344453;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--ink);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2.4rem 0 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.signal-strip div {
  min-width: 0;
  padding: 1rem;
}

.signal-strip div + div {
  border-left: 1px solid var(--line);
}

.signal-strip dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
}

.signal-strip dd {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.scan-panel {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scan-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.document-preview {
  position: relative;
  flex: 1;
  margin: 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.05) 1px, transparent 1px),
    #fbfcfd;
  background-size: 36px 36px;
  overflow: hidden;
}

.scan-corners::before,
.scan-corners::after,
.document-preview::before,
.document-preview::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-color: var(--cyan);
}

.document-preview::before {
  top: 24px;
  left: 24px;
  border-top: 6px solid;
  border-left: 6px solid;
}

.document-preview::after {
  top: 24px;
  right: 24px;
  border-top: 6px solid;
  border-right: 6px solid;
}

.scan-corners::before {
  bottom: 24px;
  left: 24px;
  border-bottom: 6px solid;
  border-left: 6px solid;
}

.scan-corners::after {
  right: 24px;
  bottom: 24px;
  border-right: 6px solid;
  border-bottom: 6px solid;
}

.doc-line,
.doc-line-wide,
.doc-highlight,
.doc-grid,
.parsed-fields {
  position: absolute;
  left: 64px;
  right: 64px;
}

.doc-line {
  top: 120px;
  height: 16px;
  width: 54%;
  background: #202b36;
}

.doc-line-wide {
  top: 82px;
  width: 72%;
  background: #101820;
}

.doc-grid {
  top: 182px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.doc-grid span {
  height: 54px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.doc-grid span:nth-child(2),
.doc-grid span:nth-child(6) {
  border-color: var(--green);
  background: rgba(49, 196, 122, 0.11);
}

.doc-highlight {
  top: 392px;
  height: 20px;
  background: var(--amber);
}

.parsed-fields {
  bottom: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.parsed-fields span {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.intro-band,
.workflow-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
  gap: 3rem;
}

.intro-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.intro-copy p,
.module-card p,
.workflow-list p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.module-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.06);
}

.module-card:nth-child(1) {
  border-top: 6px solid var(--cyan);
}

.module-card:nth-child(2) {
  border-top: 6px solid var(--green);
}

.module-card:nth-child(3) {
  border-top: 6px solid var(--amber);
}

.module-kicker {
  color: #286373;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-card h3 {
  margin: 0.9rem 0 0;
  font-size: 1.65rem;
}

.module-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.module-card li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 0.55rem;
  color: #344453;
  line-height: 1.45;
}

.module-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  background: var(--coral);
}

.workflow-grid {
  display: contents;
}

.code-panel {
  align-self: start;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #101820;
  color: #eaf7f8;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c8d5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}

.code-toolbar button {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.65;
}

.workflow-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.workflow-list span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  font-weight: 850;
}

.workflow-list h3 {
  margin: 0;
}

.workflow-list p {
  margin: 0.45rem 0 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-link {
  display: grid;
  min-height: 138px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.resource-link:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.resource-link span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-link strong {
  align-self: end;
  font-size: 1.25rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-list summary {
  min-height: 58px;
  padding: 1rem;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer img {
  width: 48px;
  height: 48px;
}

.footer p {
  margin: 0;
  line-height: 1.5;
}

.footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .intro-band,
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-copy,
  .scan-panel {
    min-height: auto;
  }

  .scan-panel {
    height: 520px;
  }

  .intro-copy,
  .module-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .footer,
  .topbar {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .brand {
    width: min(270px, 78vw);
  }

  .nav a {
    padding-inline: 0.7rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.5rem);
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .scan-toolbar {
    flex-direction: column;
  }

  .document-preview {
    margin: 0.7rem;
  }

  .doc-line,
  .doc-line-wide,
  .doc-highlight,
  .doc-grid,
  .parsed-fields {
    right: 34px;
    left: 34px;
  }

  .section {
    padding: 3rem 0;
  }

  .workflow-list li {
    grid-template-columns: 1fr;
  }

  .footer,
  .footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}
