:root {
  color-scheme: light;
  --brand-blue: #0095cf;
  --brand-blue-dark: #006a9d;
  --brand-navy: #0d415c;
  --brand-green: #3bb54a;
  --ink: #17313f;
  --muted: #657983;
  --line: #dce6e8;
  --surface: #ffffff;
  --page: #f5f8f4;
  --soft-blue: #eef8fc;
  --error: #bd342b;
  --success: #19733b;
  --shadow: 0 24px 70px rgba(30, 68, 80, 0.11);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 18%, rgba(60, 181, 74, 0.09), transparent 26rem),
    radial-gradient(circle at 94% 12%, rgba(0, 149, 207, 0.11), transparent 30rem),
    var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.site-header {
  height: 82px;
  border-bottom: 1px solid rgba(211, 224, 225, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 5;
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand img {
  display: block;
  width: 224px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.environment-badge {
  padding: 8px 13px;
  border: 1px solid #cde6ee;
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: #f3fbfd;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr);
  gap: 84px;
  align-items: center;
  min-height: 430px;
}

.hero-copy {
  padding: 20px 0 40px;
}

.eyebrow,
.result-kicker {
  margin: 0 0 13px;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 540px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--brand-navy);
}

.hero-description {
  max-width: 530px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #3c5967;
  font-size: 14px;
  font-weight: 650;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list svg {
  width: 21px;
  height: 21px;
  fill: var(--brand-green);
}

.query-card {
  padding: 38px;
  border: 1px solid rgba(211, 225, 227, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.query-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #f7931e, #ed1c24 22%, #e5007d 44%, #00a1df 68%, #39b54a);
}

.query-card-heading,
.results-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.query-card-heading {
  margin-bottom: 30px;
}

.step-number {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue-dark));
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(0, 126, 176, 0.22);
}

.query-card-heading h2 {
  margin-bottom: 3px;
  color: var(--brand-navy);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.query-card-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

form label {
  display: block;
  margin-bottom: 9px;
  color: #304d5b;
  font-size: 14px;
  font-weight: 720;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid #cfdfe2;
  border-radius: 14px;
  outline: none;
  color: var(--brand-navy);
  background: #fbfdfd;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #9aabb2;
  font-weight: 500;
  letter-spacing: 0.01em;
}

input:focus {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 149, 207, 0.12);
}

#query-button {
  min-width: 126px;
  height: 56px;
  padding: 0 23px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #007eb5);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(0, 126, 181, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

#query-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(0, 126, 181, 0.28);
}

#query-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-loader {
  display: none;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.is-loading .button-label {
  display: none;
}

.is-loading .button-loader {
  display: block;
}

.field-help {
  margin: 9px 2px 0;
  color: #809198;
  font-size: 12px;
  line-height: 1.55;
}

.query-status {
  min-height: 22px;
  margin-top: 17px;
  font-size: 14px;
  font-weight: 600;
}

.status-error {
  color: var(--error);
}

.status-success {
  color: var(--success);
}

.status-loading {
  color: var(--brand-blue-dark);
}

.results-section {
  scroll-margin-top: 24px;
  margin-top: 72px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.results-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.result-kicker {
  margin-bottom: 3px;
  letter-spacing: 0.11em;
}

.results-heading h2 {
  margin-bottom: 0;
  color: var(--brand-navy);
  font-size: 26px;
}

.verified-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--success);
  background: #edf8ef;
  font-size: 13px;
  font-weight: 720;
}

.verified-badge svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.product-summary {
  margin: 28px 0 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-summary div {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e2ebed;
  border-radius: 15px;
  background: #f9fbfb;
}

.product-summary dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.product-summary dd {
  margin: 0;
  overflow: hidden;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.subheading {
  margin-bottom: 12px;
  color: #49636f;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border: 1.5px solid #dfe9eb;
  border-radius: 16px;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.report-card.is-selected {
  border-color: #79c5df;
  background: var(--soft-blue);
  box-shadow: 0 8px 24px rgba(0, 126, 181, 0.09);
}

.report-icon {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 12px 8px;
  color: #fff;
  background: #da3b35;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.report-card-copy {
  min-width: 0;
  padding-top: 2px;
}

.report-card h4 {
  margin-bottom: 5px;
  color: var(--brand-navy);
  font-size: 15px;
}

.report-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.report-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.preview-button,
.download-link {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.preview-button {
  border: 0;
  color: #fff;
  background: var(--brand-blue-dark);
  cursor: pointer;
}

.download-link {
  border: 1px solid #cfe0e4;
  color: #385866;
  background: #fff;
  cursor: pointer;
}

.preview-panel {
  overflow: hidden;
  border: 1px solid #dce7e9;
  border-radius: 18px;
  background: #f7fafa;
}

.preview-heading {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dce7e9;
  background: #fff;
}

.preview-heading > div {
  min-width: 0;
}

.preview-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.preview-heading strong {
  display: block;
  overflow: hidden;
  color: var(--brand-navy);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.open-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.viewer-shell {
  height: 570px;
  position: relative;
}

#report-viewer {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.viewer-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  color: #82949b;
  text-align: center;
}

.viewer-empty svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: #a6b6bc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer-empty p {
  margin-bottom: 0;
  font-size: 13px;
}

.help-section {
  margin-top: 72px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid #dce9e4;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
}

.help-section h2 {
  margin-bottom: 10px;
  color: var(--brand-navy);
  font-size: 24px;
}

.help-section p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.batch-example {
  flex: 0 0 auto;
  min-width: 200px;
  padding: 18px 22px;
  border: 1px dashed #90b6c2;
  border-radius: 14px;
  position: relative;
  background: #fff;
}

.batch-example span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.batch-example strong {
  color: var(--brand-navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.batch-example small {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #8da0a7;
  font-size: 10px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid #dbe6e3;
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-footer img {
  width: 126px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin-bottom: 0;
  line-height: 1.6;
}

.privacy-note {
  max-width: 510px;
  text-align: right;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 149, 207, 0.35);
  outline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .hero-copy {
    max-width: 700px;
    padding-bottom: 0;
  }

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

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

  .viewer-shell {
    height: 520px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 68px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 680px);
  }

  .brand img {
    width: 170px;
    height: 46px;
  }

  .environment-badge {
    padding: 6px 9px;
    font-size: 10px;
  }

  .page-shell {
    padding: 42px 0 50px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 4px;
  }

  h1 {
    margin-bottom: 17px;
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-description {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .trust-list {
    gap: 14px;
    font-size: 13px;
  }

  .query-card,
  .results-section {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .query-card-heading {
    margin-bottom: 24px;
  }

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

  #query-button {
    width: 100%;
  }

  .results-section,
  .help-section {
    margin-top: 46px;
  }

  .results-heading {
    align-items: flex-start;
  }

  .verified-badge {
    padding: 7px 9px;
    font-size: 10px;
  }

  .product-summary {
    grid-template-columns: 1fr 1fr;
  }

  .product-summary div {
    padding: 14px;
  }

  .report-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .viewer-shell {
    height: 68vh;
    min-height: 430px;
  }

  .preview-heading {
    align-items: flex-start;
  }

  .help-section {
    padding: 26px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .batch-example {
    width: 100%;
  }

  .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .privacy-note {
    text-align: left;
  }
}

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