:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --body: #333333;
  --muted: #7a7a7a;
  --hairline: #e0e0e0;
  --divider-soft: #f0f0f0;
  --canvas: #ffffff;
  --pearl: #fafafc;
  --parchment: #f5f5f7;
  --tile-dark: #272729;
  --tile-deeper: #000000;
  --success: #2f7d32;
  --warning: #a45b00;
  --danger: #c62828;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --nav-height: 44px;
  --content: min(1180px, calc(100vw - 40px));
  --shadow-product: 0 30px 80px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "SF Pro Text", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(0, 0, 0, 0.86);
  color: #ffffff;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  font-size: 13px;
  line-height: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: rgba(255, 255, 255, 0.92);
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover,
.nav-links a.active,
.brand-mark:hover,
.secondary-link:hover,
.text-button:hover {
  color: var(--primary-focus);
}

.nav-search-button {
  justify-self: end;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13px;
  line-height: 1;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.split-band.page-view {
  display: none;
}

.split-band.page-view.active {
  display: grid;
}

.welcome-page {
  min-height: calc(100vh - var(--nav-height));
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 64%, var(--parchment) 100%);
}

.welcome-shell {
  width: var(--content);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.welcome-title {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-align: center;
}

.welcome-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.72)),
    url("./assets/hero-antibody.png") center / cover no-repeat;
  box-shadow: var(--shadow-product);
}

.welcome-title > * {
  position: relative;
  z-index: 1;
}

.welcome-title h1 {
  margin-bottom: 8px;
  font-size: 80px;
}

.welcome-title > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--body);
  font-size: 28px;
  line-height: 1.18;
}

.welcome-panel {
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 36px 42px;
  border: 1px solid var(--divider-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.welcome-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.welcome-copy h2 {
  font-size: 40px;
}

.welcome-copy p {
  color: var(--body);
  font-size: 21px;
  line-height: 1.35;
}

.hero-section {
  width: 100%;
  min-height: calc(88vh - var(--nav-height));
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(54px, 8vw, 104px) max(20px, calc((100vw - 1180px) / 2)) 40px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 13px;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 26px;
  color: #333333;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  background: var(--primary);
  color: #ffffff;
  font-size: 17px;
}

.primary-pill:hover {
  background: var(--primary-focus);
}

.secondary-link,
.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-size: 17px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 680px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-product);
}

.overview-band,
.workspace,
.split-band,
.docs-band,
.detail-band {
  padding: 80px max(20px, calc((100vw - 1180px) / 2));
}

.overview-band {
  background: var(--parchment);
}

.stat-grid {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-tile {
  min-height: 142px;
  padding: 28px;
  background: var(--canvas);
  border: 1px solid var(--divider-soft);
  border-radius: var(--radius-lg);
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.welcome-page .stat-grid {
  width: 100%;
  margin: 18px 0 14px;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gateway-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--divider-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  color: var(--ink);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.gateway-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 204, 0.32);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.08);
}

.gateway-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.gateway-card strong {
  font-size: 21px;
  line-height: 1.19;
}

.gateway-card span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.workspace,
.docs-band {
  background: var(--canvas);
}

.workspace.pearl {
  background: var(--pearl);
}

.section-heading {
  width: var(--content);
  margin: 0 auto 34px;
  max-width: 860px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--body);
  font-size: 21px;
  line-height: 1.35;
}

.search-panel {
  width: var(--content);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.search-box input,
.select-label select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: var(--canvas);
  color: var(--ink);
  outline: none;
}

.search-box input:focus,
.select-label select:focus {
  border-color: var(--primary-focus);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.toggle-row {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--body);
  white-space: nowrap;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.browser-layout {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters-panel,
.records-panel,
.detail-card,
.target-card,
.doc-card,
.download-card {
  border: 1px solid var(--divider-soft);
  background: var(--canvas);
  border-radius: var(--radius-lg);
}

.filters-panel {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow: auto;
  padding: 20px;
}

.panel-title-row,
.toolbar,
.detail-header,
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--divider-soft);
}

.filter-group:first-of-type {
  border-top: 0;
}

.filter-group h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.filter-options {
  display: grid;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--body);
  font-size: 14px;
}

.filter-option input {
  accent-color: var(--primary);
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.filter-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  color: var(--muted);
  font-size: 12px;
}

.records-panel {
  overflow: hidden;
}

.toolbar {
  padding: 20px 22px;
  border-bottom: 1px solid var(--divider-soft);
}

.result-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

.select-label {
  display: grid;
  gap: 6px;
  min-width: 172px;
  color: var(--muted);
  font-size: 12px;
}

.record-table-wrap {
  overflow-x: auto;
}

.record-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 14px;
}

.record-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider-soft);
}

.record-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--divider-soft);
  vertical-align: top;
}

.record-table tbody tr {
  transition: background-color 160ms ease;
}

.record-table tbody tr:hover {
  background: var(--pearl);
}

.row-button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  text-align: left;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  background: var(--parchment);
  color: var(--body);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.pill.blue {
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
}

.pill.green {
  background: rgba(47, 125, 50, 0.1);
  color: var(--success);
}

.pill.orange {
  background: rgba(164, 91, 0, 0.11);
  color: var(--warning);
}

.detail-band {
  background:
    linear-gradient(180deg, var(--parchment) 0%, #d7d7dc 12%, #4a4a4f 34%, #1d1d1f 100%);
  color: #ffffff;
  padding-top: 112px;
}

.detail-card {
  width: var(--content);
  margin: 0 auto;
  padding: 34px;
  background: #151517;
  border-color: #303033;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.28);
}

.detail-card .eyebrow,
.detail-card .muted {
  color: #cccccc;
}

.detail-card h2 {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.info-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #272729;
}

.info-panel h3 {
  color: #ffffff;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
}

.info-list dt {
  color: #cccccc;
}

.info-list dd {
  margin: 0;
  word-break: break-word;
}

.measurement-grid,
.sequence-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.measurement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.measurement-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #000000;
  border: 1px solid #333333;
}

.measurement-card strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.measurement-card span {
  color: var(--primary-on-dark);
  font-size: 21px;
  font-weight: 600;
}

.sequence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sequence-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #000000;
  border: 1px solid #333333;
}

.sequence-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.region {
  border-radius: 5px;
  padding: 2px 5px;
  color: #000000;
}

.fr {
  background: #f5f5f7;
}

.cdr {
  background: #2997ff;
  color: #ffffff;
}

.target-grid,
.docs-grid {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.target-card,
.doc-card,
.download-card {
  padding: 24px;
}

.target-card {
  display: block;
  min-height: 260px;
}

.target-card:hover h3 {
  color: var(--primary);
}

.target-card h3 {
  min-height: 50px;
}

.target-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--body);
  font-size: 14px;
}

.mini-bars {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-bar {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.bar-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--parchment);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.split-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--canvas);
}

.split-band > div {
  min-width: 0;
}

.split-band p {
  color: var(--body);
  font-size: 21px;
  line-height: 1.35;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-row {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--pearl);
}

.download-row strong {
  display: block;
}

.download-row span {
  color: var(--muted);
  font-size: 14px;
}

.docs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-card h3 {
  margin-bottom: 12px;
}

.doc-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--body);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px max(20px, calc((100vw - 1180px) / 2));
  background: var(--parchment);
  color: var(--muted);
  font-size: 12px;
}

.empty-row {
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-lede {
    font-size: 24px;
  }

  .welcome-title h1 {
    font-size: 64px;
  }

  .welcome-title > p:not(.eyebrow) {
    font-size: 24px;
  }

  .global-nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-section,
  .split-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
    text-align: center;
    justify-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .stat-grid,
  .gateway-grid,
  .target-grid,
  .docs-grid,
  .detail-grid,
  .measurement-grid,
  .sequence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .browser-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --content: calc(100vw - 28px);
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede,
  .welcome-title > p:not(.eyebrow),
  .section-heading p:not(.eyebrow),
  .split-band p {
    font-size: 21px;
  }

  .welcome-shell {
    padding: 42px 0 54px;
  }

  .welcome-title h1 {
    font-size: 52px;
  }

  .welcome-panel {
    padding: 24px;
  }

  .welcome-title {
    min-height: 360px;
  }

  .welcome-copy h2 {
    font-size: 34px;
  }

  .global-nav {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-mark span:last-child,
  .nav-search-button {
    display: none;
  }

  .nav-links {
    gap: 18px;
  }

  .hero-section,
  .overview-band,
  .workspace,
  .split-band,
  .docs-band,
  .detail-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-section {
    padding-top: 42px;
  }

  .search-panel,
  .stat-grid,
  .gateway-grid,
  .target-grid,
  .docs-grid,
  .detail-grid,
  .measurement-grid,
  .sequence-grid {
    grid-template-columns: 1fr;
  }

  .filter-options {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .detail-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-card {
    padding: 22px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section-heading {
    text-align: left;
  }
}
