:root {
  --ink: #172033;
  --muted: #667085;
  --soft: #8b95a7;
  --line: #dfe5ee;
  --line-strong: #cbd4e1;
  --paper: #ffffff;
  --canvas: #eef2f7;
  --canvas-deep: #e6ebf2;
  --navy: #18233a;
  --navy-hover: #22304c;
  --cyan: #159e9a;
  --cyan-soft: #e8f7f5;
  --blue-soft: #edf3ff;
  --amber: #c68a1b;
  --amber-soft: #fff7e5;
  --danger: #c63e4a;
  --danger-soft: #fff0f1;
  --success: #138a66;
  --shadow: 0 14px 34px rgba(28, 39, 60, 0.08);
  --shadow-soft: 0 8px 20px rgba(28, 39, 60, 0.055);
  --radius: 14px;
  --display: "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 18% 5%, rgba(21, 158, 154, 0.08), transparent 27rem),
    linear-gradient(180deg, #f2f5f9 0%, var(--canvas) 55%, var(--canvas-deep) 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(860px, calc(100% - 32px));
  margin: 28px auto 44px;
}

.hero-card,
.work-card,
.query-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 212, 225, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.signal-line {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr 0.55fr 2.2fr;
  gap: 5px;
  width: 100%;
  height: 4px;
  padding: 0 1px;
  background: #f5f7fa;
}

.signal-line span {
  display: block;
  background: var(--navy);
}

.signal-line span:nth-child(2),
.signal-line span:nth-child(4) {
  background: var(--cyan);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px 5px 14px 5px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(24, 35, 58, 0.2);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow,
.section-kicker {
  margin: 0 0 3px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 9px rgba(28, 39, 60, 0.04);
  font-size: 13px;
  font-weight: 650;
}

.language-button:hover {
  border-color: var(--line-strong);
  background: #f8fafc;
}

.hero-intro {
  max-width: 650px;
  margin: 0;
  padding: 0 32px 24px;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.trust-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  min-height: 72px;
  align-content: center;
  padding: 13px 22px;
  column-gap: 10px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  align-self: end;
  font-size: 13px;
}

.trust-item small {
  color: var(--soft);
  font-size: 11px;
}

.trust-icon {
  display: grid;
  grid-row: span 2;
  width: 29px;
  height: 29px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  color: var(--success);
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 800;
}

.trust-icon.match {
  color: var(--amber);
  background: var(--amber-soft);
}

.trust-icon.track {
  color: #4d68ac;
  background: var(--blue-soft);
}

.guide-grid {
  display: grid;
  gap: 13px;
  padding: 24px 32px 26px;
  background:
    linear-gradient(90deg, rgba(239, 243, 248, 0.78) 1px, transparent 1px) 0 0 / 32px 32px,
    #f8fafc;
}

.guide-grid article {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.guide-number {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.guide-grid strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.guide-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 21px 32px 25px;
  list-style: none;
  counter-reset: steps;
}

.step-rail li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

.step-rail li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 13px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  content: "";
  background: var(--line);
}

.step-rail li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  background: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.step-rail li.active,
.step-rail li.complete {
  color: var(--ink);
}

.step-rail li.active span {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.step-rail li.complete span {
  border-color: var(--cyan);
  color: #fff;
  background: var(--cyan);
}

.work-card {
  margin-top: 16px;
  padding: 27px 30px 30px;
  box-shadow: var(--shadow-soft);
}

.section-heading {
  margin-bottom: 21px;
}

.section-heading.with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #f0cbd0;
  border-radius: 10px;
  color: #98323d;
  background: var(--danger-soft);
  font-size: 13px;
  font-weight: 600;
}

.notice.success {
  border-color: #b9dfd1;
  color: #116d52;
  background: #eefaf6;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.field-label small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fbfcfe;
  box-shadow: inset 0 1px 2px rgba(28, 39, 60, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(21, 158, 154, 0.75);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 158, 154, 0.11);
}

input::placeholder,
textarea::placeholder {
  color: #a0a9b8;
}

.inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 10px;
  font-weight: 720;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 7px 16px rgba(24, 35, 58, 0.14);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--navy-hover);
}

.primary-button:disabled {
  color: #a8b0bd;
  background: #edf0f4;
  box-shadow: none;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover:not(:disabled) {
  border-color: #aab6c7;
  background: #f8fafc;
}

.text-button {
  flex: 0 0 auto;
  padding: 7px 0;
  color: var(--cyan);
  background: transparent;
  font-size: 12px;
}

.wide {
  width: 100%;
}

.button-icon {
  font-size: 16px;
}

.matched-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #bfe1dc;
  border-radius: 10px;
  color: #397068;
  background: var(--cyan-soft);
  font-size: 12px;
}

.matched-service strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
}

.dynamic-field {
  margin-bottom: 18px;
}

.field-help {
  margin: 6px 1px 0;
  color: var(--soft);
  font-size: 11px;
}

.secret-wrap {
  position: relative;
}

.secret-wrap input {
  padding-right: 76px;
}

.secret-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 5px 8px;
  transform: translateY(-50%);
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.check-row,
.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.check-row input,
.confirm-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.check-row strong {
  display: block;
  font-size: 13px;
}

.check-row small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.form-actions {
  margin-top: 22px;
}

.confirmation-sheet {
  overflow: hidden;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}

.confirm-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.confirm-row:last-child {
  border-bottom: 0;
}

.confirm-row dt {
  color: var(--muted);
  font-size: 12px;
}

.confirm-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}

.confirm-check {
  align-items: center;
  font-size: 13px;
}

.result-header {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 24px;
}

.status-orb {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--amber);
  background: var(--amber-soft);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.status-orb.success {
  color: var(--success);
  background: var(--cyan-soft);
}

.status-orb.failed {
  color: var(--danger);
  background: var(--danger-soft);
}

.result-header h2 {
  margin-bottom: 2px;
}

.result-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}

.result-grid div {
  min-width: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.result-grid div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.result-grid dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.result-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.query-card {
  margin-top: 14px;
  box-shadow: var(--shadow-soft);
}

.query-card summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.query-card summary::-webkit-details-marker {
  display: none;
}

.query-card summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.query-card summary strong {
  font-size: 13px;
}

.query-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #506380;
  background: var(--blue-soft);
  font-weight: 800;
}

.chevron {
  color: var(--soft);
  transition: transform 180ms ease;
}

.query-card[open] .chevron {
  transform: rotate(180deg);
}

.query-body {
  padding: 25px 28px 28px;
  border-top: 1px solid var(--line);
}

.query-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6f9;
}

.query-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.query-tabs button.active {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 5px 11px rgba(24, 35, 58, 0.12);
}

.top-gap {
  margin-top: 14px;
}

.query-submit {
  margin-top: 17px;
}

.query-result {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.query-result.error {
  border-color: #efc7cc;
  color: #98323d;
  background: var(--danger-soft);
}

.query-result h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 17px;
}

.query-result p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.query-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 13px;
}

.query-meta span {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.query-meta strong {
  margin-right: 5px;
  color: var(--muted);
  font-weight: 600;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px 12px 0;
  color: #7b8698;
  font-size: 11px;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-mark {
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 850;
}

:focus-visible {
  outline: 3px solid rgba(21, 158, 154, 0.23);
  outline-offset: 2px;
}

.loading::after {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: spin 0.75s linear infinite;
}

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 860px);
    margin-top: 10px;
  }

  .topbar,
  .hero-intro,
  .guide-grid,
  .step-rail {
    padding-right: 20px;
    padding-left: 20px;
  }

  .topbar {
    padding-top: 24px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 62px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step-rail {
    padding-top: 18px;
  }

  .step-rail strong {
    max-width: 82px;
    line-height: 1.25;
  }

  .work-card {
    padding: 24px 20px;
  }

  .inline-action {
    grid-template-columns: 1fr;
  }

  .section-heading.with-action {
    gap: 14px;
  }

  .confirm-row {
    grid-template-columns: 105px 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-grid div:nth-child(odd) {
    border-right: 0;
  }

  .result-actions {
    flex-direction: column-reverse;
  }

  .result-actions button {
    width: 100%;
  }

  .query-body {
    padding: 22px 20px 24px;
  }

  .query-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .language-button {
    padding: 7px 9px;
  }

  .language-button span:first-child {
    display: none;
  }

  .eyebrow {
    font-size: 9px;
  }

  h1 {
    font-size: 23px;
  }

  .hero-intro {
    font-size: 13px;
  }

  .step-rail {
    padding-right: 10px;
    padding-left: 10px;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .matched-service {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .matched-service strong {
    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;
  }
}
