:root {
  color-scheme: dark;
  --page: #080e18;
  --surface: #0e1929;
  --surface-raised: #111f31;
  --surface-soft: #15283b;
  --border: #203349;
  --text: #f0f5fc;
  --body: #c3d1df;
  --muted: #8194a9;
  --teal: #5ed6c6;
  --orange: #f2a447;
  --danger: #f38b83;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--page);
  color: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.site-header {
  position: relative; z-index: 2; height: 76px; display: flex; align-items: center;
  gap: 24px; padding: 0 clamp(24px, 5vw, 76px); border-bottom: 1px solid #172638;
  background: rgba(8, 14, 24, .94);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon {
  display: inline-flex; align-items: end; justify-content: center; gap: 3px; width: 31px;
  height: 31px; padding-bottom: 8px; border-radius: 9px; background: #14293a;
  transform: rotate(-7deg);
}
.brand-icon span { display: block; width: 4px; border-radius: 2px; background: var(--teal); }
.brand-icon span:nth-child(1) { height: 8px; }
.brand-icon span:nth-child(2) { height: 15px; background: var(--orange); }
.brand-icon span:nth-child(3) { height: 11px; }
.brand-name { color: var(--text); font-size: 22px; font-weight: 750; letter-spacing: -.07em; }
.brand-name span { color: var(--teal); }
.header-separator { width: 1px; height: 25px; background: #2a3c52; }
.header-label { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; }
.header-link { margin-left: auto; color: #9ab0c4; font-size: 12px; font-weight: 600; text-decoration: none; }
.header-link span { color: var(--teal); }
.header-link:hover { color: white; }
.language-control { margin-left: auto; }
.language-control + .header-link { margin-left: 0; }
.language-control select, .report-language-control select {
  appearance: none; border: 1px solid #355469; border-radius: 7px; padding: 7px 27px 7px 10px;
  color: var(--text); background: #142637 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235ed6c6' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.report-language-control { display: block; margin: 12px 0 16px; }
.report-language-control select { width: 100%; }

.site-shell > main { width: min(100% - 48px, 1180px); margin: 0 auto; flex: 1; padding-bottom: 92px; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  align-items: center; gap: 55px; min-height: 400px; padding: 58px 0 46px;
}
.hero::before {
  position: absolute; z-index: -1; width: 660px; height: 530px; right: -140px; top: -100px;
  background: radial-gradient(ellipse, rgba(27, 70, 85, .28), transparent 69%); content: "";
}
.eyebrow, .section-kicker { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 164, 71, .12); }
.hero h1 { margin: 19px 0 18px; color: var(--text); font-size: clamp(40px, 4.25vw, 62px); line-height: 1.08; letter-spacing: -.055em; font-weight: 740; }
.hero h1 span { color: var(--teal); }
.hero-copy > p { max-width: 570px; margin: 0; color: #a8bacb; font-size: 15px; line-height: 1.75; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-chips span { border: 1px solid #274157; color: #9fb5c5; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 600; background: #0b1723; }
.hero-graphic { height: 296px; position: relative; display: grid; place-items: center; }
.graphic-grid {
  position: absolute; inset: 0; border: 1px solid #243d4b; border-radius: 16px; opacity: .55;
  background-image: linear-gradient(#1f3540 1px, transparent 1px), linear-gradient(90deg, #1f3540 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
}
.graphic-plot {
  position: relative; width: min(100% - 40px, 445px); padding: 19px 21px 16px;
  background: linear-gradient(160deg, #152b3a, #0d1a2b 66%); border: 1px solid #2a4353;
  border-radius: 13px; box-shadow: 0 22px 60px #0006;
  transform: rotate(-2deg);
}
.plot-caption, .plot-axis { display: flex; justify-content: space-between; color: #839aab; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.plot-caption span:first-child { color: #dce8eb; }
.graphic-plot svg { display: block; width: 100%; height: 158px; margin-top: 14px; overflow: visible; }
.plot-fill { fill: rgba(94, 214, 198, .09); }
.plot-line { fill: none; stroke: var(--teal); stroke-width: 3; vector-effect: non-scaling-stroke; }
.graphic-plot circle { fill: var(--orange); stroke: #183041; stroke-width: 3; }
.plot-axis { margin-top: 4px; font-size: 9px; letter-spacing: 0; }
.graphic-card { position: absolute; bottom: 5px; right: -8px; width: 147px; padding: 14px 15px 17px; border: 1px solid #39536a; border-radius: 10px; background: #142637; box-shadow: 0 15px 35px #0006; transform: rotate(4deg); }
.graphic-card > span { display: block; color: #91a9b9; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.graphic-card strong { display: block; color: #f5f7f8; margin-top: 3px; font-size: 24px; line-height: 1.1; }
.graphic-card small { font-size: 13px; color: var(--teal); }
.graphic-card i { position: absolute; top: 19px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #5ed6c61a; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .85fr); align-items: stretch; gap: 20px; }
.upload-card, .journey-card, .process-card, .error-card { border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: 0 20px 46px rgba(0, 0, 0, .12); }
.upload-card { padding: clamp(24px, 3vw, 36px); }
.card-heading, .process-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 { color: var(--text); }
.card-heading h2, .process-heading h2 { margin: 6px 0 0; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.card-tag { flex: none; padding: 6px 10px; border: 1px solid #324250; border-radius: 7px; color: #a4b8c8; font-size: 10px; letter-spacing: .06em; font-weight: 700; }
.card-description { margin: 13px 0 23px; max-width: 540px; color: #96aabe; font-size: 13px; line-height: 1.6; }
.dropzone { min-height: 220px; padding: 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; border: 1px dashed #426078; border-radius: 11px; cursor: pointer; background: linear-gradient(145deg, rgba(94, 214, 198, .035), rgba(45, 90, 114, .04)); transition: border-color .18s, background .18s, transform .18s; }
.dropzone:hover, .dropzone.dragging, .dropzone:focus-within { border-color: var(--teal); background: rgba(94, 214, 198, .07); }
.dropzone.dragging { transform: scale(1.005); }
.dropzone.disabled { pointer-events: none; opacity: .55; }
.drop-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 12px; border-radius: 12px; color: var(--teal); background: #193744; border: 1px solid #2c5a62; }
.drop-icon svg { width: 23px; height: 23px; }
.drop-title { color: var(--text); font-size: 15px; font-weight: 700; }
.drop-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.drop-hint span { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.drop-limit { margin-top: 22px; color: #71879d; font-size: 10px; letter-spacing: .06em; }
.file-list-wrap { margin-top: 20px; }
.file-list-heading { display: flex; justify-content: space-between; color: #8299ac; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.file-list { list-style: none; padding: 0; margin: 9px 0 7px; display: grid; gap: 7px; }
.file-list li { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; border: 1px solid #294157; border-radius: 8px; background: #122335; }
.file-type { display: grid; place-items: center; flex: none; width: 28px; height: 30px; border-radius: 5px; color: var(--teal); background: #214043; font-size: 9px; font-weight: 800; }
.file-name { min-width: 0; flex: 1; color: #e4ecf5; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: #8ba1b4; font-size: 11px; white-space: nowrap; }
.remove-file { border: 0; color: #8aa0b1; background: transparent; padding: 3px 7px; font-size: 17px; line-height: 1; }
.remove-file:hover { color: var(--danger); }
.text-button { border: 0; padding: 4px 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.form-message { margin-top: 15px; color: var(--danger); font-size: 12px; }
.upload-actions { display: flex; align-items: center; gap: 19px; margin-top: 22px; }
.upload-actions p { max-width: 290px; margin: 0; color: #748ba0; font-size: 10.5px; line-height: 1.45; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 43px; padding: 0 17px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.primary-button { color: #092028; border: 1px solid var(--teal); background: var(--teal); }
.primary-button:hover:not(:disabled) { background: #8ce5da; border-color: #8ce5da; }
.primary-button:disabled { cursor: not-allowed; opacity: .48; }
.primary-button span, .secondary-button span { font-size: 18px; line-height: 1; }
.secondary-button { color: var(--teal); border: 1px solid #3a6972; background: transparent; }
.secondary-button:hover { background: #17353c; }

.journey-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); background: linear-gradient(150deg, #111e2d, #0c1826); }
.journey-card h2 { max-width: 340px; margin: 12px 0 24px; font-size: 24px; line-height: 1.23; letter-spacing: -.04em; }
.journey-list { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
.journey-list li { display: flex; align-items: flex-start; gap: 14px; }
.journey-number { color: var(--orange); font-size: 12px; font-weight: 800; line-height: 1.8; }
.journey-list strong { color: #e8f1f9; font-size: 13px; }
.journey-list p { margin: 3px 0 0; color: #8fa5b7; font-size: 11px; line-height: 1.55; }
.journey-note { display: flex; gap: 13px; align-items: flex-start; margin-top: auto; padding: 21px 0 0; border-top: 1px solid #294051; }
.note-mark { color: var(--teal); font-size: 20px; }
.journey-note p { margin: 0; color: #87a0b2; font-size: 11px; line-height: 1.5; }

.process-card, .error-card { margin-top: 20px; padding: clamp(24px, 3vw, 34px); }
.process-state { color: var(--orange); border: 1px solid #765538; background: #3a2c24; border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 700; }
#process-description { margin: 18px 0; color: #a9bed0; font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #24374a; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #319f9c, var(--teal)); transition: width .15s; }
.progress-track.indeterminate span { width: 38% !important; animation: progress-sweep 1.55s ease-in-out infinite; }
@keyframes progress-sweep { from { transform: translateX(-105%); } to { transform: translateX(270%); } }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; color: #849aaf; font-size: 11px; }
.progress-meta strong { color: var(--teal); }
.process-steps { display: flex; justify-content: space-between; gap: 10px; margin-top: 23px; padding-top: 17px; border-top: 1px solid #263c4d; }
.process-steps span { position: relative; flex: 1; color: #6f8498; font-size: 11px; font-weight: 700; }
.process-steps span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border: 1px solid #62778c; border-radius: 50%; }
.process-steps span.active { color: var(--teal); }
.process-steps span.active::before { background: var(--teal); border-color: var(--teal); }
.process-steps span.done { color: #a5b7c6; }
.process-steps span.done::before { background: #6caea8; border-color: #6caea8; }
.error-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #754c4d; }
.error-card h2 { margin: 6px 0 5px; font-size: 21px; }
.error-card p { margin: 0; color: #d5a7a5; font-size: 12px; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid #1c2b3d; background: #111827; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 27px 24px; }
.assayware-credit { display: inline-flex; align-items: center; gap: 10px; color: #aeb7c7; font-size: 10px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.assayware-credit img { display: block; width: 142px; height: auto; }
.credit-arrow { color: #8da3d9; font-size: 13px; }
.assayware-credit:hover { color: white; }
.footer-inner > p { margin: 0; color: #8290a3; font-size: 10px; text-align: center; }
.privacy-footer-link { justify-self: end; color: #c4cbd6; font-size: 12px; text-underline-offset: 3px; }
.privacy-footer-link:hover { color: white; }

.privacy-main { width: min(100% - 48px, 760px); padding-top: 80px; }
.privacy-main h1 { margin: 14px 0 16px; color: var(--text); font-size: clamp(36px, 5vw, 52px); letter-spacing: -.05em; }
.privacy-main .privacy-intro { color: #a8bacb; font-size: 16px; line-height: 1.7; }
.privacy-main section { margin-top: 30px; padding: 24px 27px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.privacy-main h2 { margin: 0 0 10px; font-size: 19px; }
.privacy-main p { margin: 0; line-height: 1.75; }
.privacy-main p + p { margin-top: 12px; }
.privacy-main a { color: var(--teal); }
.not-found-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 64vh; padding-top: 70px; }
.not-found-main h1 { margin: 18px 0 14px; color: var(--text); font-size: clamp(40px, 6vw, 68px); letter-spacing: -.055em; }
.not-found-main p { max-width: 530px; margin: 0 0 30px; color: #a8bacb; font-size: 16px; line-height: 1.7; }

@media (max-width: 950px) {
  .hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; }
  .hero h1 { font-size: clamp(36px, 4.8vw, 50px); }
  .graphic-card { right: 1px; }
}
@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 24px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 52px 0 28px; }
  .hero-graphic { display: none; }
  .hero h1 { font-size: clamp(38px, 8vw, 54px); }
  .workspace { grid-template-columns: 1fr; }
  .journey-card { gap: 0; }
  .journey-list { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .journey-list li { gap: 7px; }
  .journey-note { margin-top: 24px; }
}
@media (max-width: 560px) {
  main { width: min(100% - 32px, 1180px); padding-bottom: 54px; }
  .site-header { gap: 14px; padding: 0 16px; }
  .header-label, .header-separator { display: none; }
  .header-link { font-size: 11px; }
  .language-control select { max-width: 96px; padding-left: 7px; font-size: 10px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { font-size: 13px; }
  .hero-chips { margin-top: 21px; }
  .hero-chips span { font-size: 10px; }
  .upload-card, .journey-card, .process-card, .error-card { padding: 21px; }
  .card-heading { align-items: start; }
  .card-heading h2 { font-size: 23px; }
  .card-tag { max-width: 92px; text-align: center; line-height: 1.4; }
  .upload-actions { flex-direction: column; align-items: stretch; }
  .upload-actions p { max-width: unset; }
  .journey-list { grid-template-columns: 1fr; gap: 17px; }
  .journey-card h2 { margin-bottom: 19px; }
  .error-card { flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .footer-inner > p { text-align: left; }
  .privacy-footer-link { justify-self: start; }
  .privacy-main { width: min(100% - 32px, 760px); padding-top: 52px; }
  .not-found-main { min-height: 56vh; padding-top: 45px; }
}
@media (max-width: 420px) {
  .site-header .header-link { display: none; }
}
