:root {
  color-scheme: dark;
  --bg: #0f1015;
  --bg-2: #151721;
  --surface: rgba(232, 235, 255, 0.07);
  --surface-strong: rgba(232, 235, 255, 0.11);
  --surface-soft: rgba(232, 235, 255, 0.045);
  --line: rgba(224, 228, 255, 0.16);
  --line-strong: rgba(224, 228, 255, 0.26);
  --text: #f4f3fb;
  --muted: #b9b5c9;
  --soft: #8b879e;
  --accent: #b8a7ff;
  --accent-strong: #d8d0ff;
  --accent-ink: #17112f;
  --danger: #ff9a92;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --shadow: 0 24px 80px rgba(4, 5, 12, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(184, 167, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #11121a 0%, var(--bg) 46%, #0c0d12 100%);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(244, 243, 251, 0.07), transparent 34%),
    linear-gradient(250deg, rgba(87, 92, 125, 0.16), transparent 42%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(244, 243, 251, 0.08);
  background: rgba(15, 16, 21, 0.72);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(216, 208, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(184, 167, 255, 0.1);
  color: var(--accent-strong);
  font-family: var(--mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 10px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  background: rgba(244, 243, 251, 0.08);
  color: var(--text);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 64px);
}

.hero-copy {
  max-width: 760px;
}

.kicker,
.small-label,
.dossier-label {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.primary-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-link,
.primary-button {
  border: 1px solid rgba(216, 208, 255, 0.86);
  background: linear-gradient(180deg, #eeeaff, var(--accent));
  color: var(--accent-ink);
  font-weight: 760;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 34px rgba(184, 167, 255, 0.18);
}

.primary-link {
  padding: 0 20px;
}

.primary-button {
  padding: 0 24px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(244, 243, 251, 0.055);
  color: var(--text);
  padding: 0 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.primary-link:hover,
.primary-button:hover {
  background: linear-gradient(180deg, #f7f4ff, #c9bcff);
}

.secondary-button:hover {
  border-color: rgba(216, 208, 255, 0.56);
  background: rgba(244, 243, 251, 0.085);
}

.primary-link:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.dossier-panel {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(244, 243, 251, 0.16), rgba(244, 243, 251, 0.04)),
    rgba(17, 18, 27, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dossier-panel::before {
  position: absolute;
  inset: 1px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.archive-image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 62%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.dossier-copy {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 30px;
  left: 30px;
  border: 1px solid rgba(224, 228, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 243, 251, 0.14), rgba(244, 243, 251, 0.06)),
    rgba(14, 15, 22, 0.58);
  padding: 24px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.dossier-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 740;
  line-height: 1.16;
}

.dossier-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workbench,
.report-layout,
.evidence-section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 760;
  line-height: 1.04;
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.input-form {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}

fieldset {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 243, 251, 0.105), rgba(244, 243, 251, 0.045)),
    rgba(17, 18, 27, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

legend {
  padding: 0 8px;
  color: var(--accent-strong);
  font-weight: 720;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.wide-field {
  grid-column: span 2;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(224, 228, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 11, 16, 0.58);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

select {
  color-scheme: dark;
}

input[readonly] {
  color: var(--accent-strong);
}

.time-select-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.time-select-group select {
  text-align: center;
  font-family: var(--mono);
  font-size: 16px;
}

.time-separator {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
}

.field-hint {
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.4;
}

input:focus,
select:focus {
  border-color: rgba(216, 208, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(184, 167, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.form-note {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.form-note.error {
  color: var(--danger);
}

.report-console {
  max-width: 1180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(184, 167, 255, 0.13), transparent 36rem),
    rgba(18, 19, 29, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.report-console.is-fresh {
  border-color: rgba(216, 208, 255, 0.72);
  box-shadow:
    var(--shadow),
    0 0 0 4px rgba(184, 167, 255, 0.14);
}

.report-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.2fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.report-head h3,
.path-block h3 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 760;
  line-height: 1.05;
}

.report-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.8fr);
  min-height: 290px;
  border-bottom: 1px solid var(--line);
}

.judgement-block,
.path-block {
  padding: clamp(22px, 3vw, 34px);
}

.judgement-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.judgement-block p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(25px, 3.3vw, 43px);
  font-weight: 760;
  line-height: 1.22;
}

.path-block {
  border-left: 1px solid var(--line);
  background: rgba(184, 167, 255, 0.075);
}

.path-block p,
.report-slices p,
.paid-bar p {
  color: var(--muted);
  line-height: 1.75;
}

.time-correction {
  margin: 0;
  border-left: 1px solid rgba(216, 208, 255, 0.32);
  padding-left: clamp(16px, 3vw, 28px);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}

.report-slices {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr 0.92fr 0.92fr;
  border-bottom: 1px solid var(--line);
}

.report-slices article {
  min-height: 220px;
  padding: clamp(20px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
  background: rgba(244, 243, 251, 0.025);
}

.report-slices article:nth-child(2) {
  background: rgba(184, 167, 255, 0.055);
}

.report-slices article:last-child {
  border-right: 0;
}

.report-slices p {
  margin: 14px 0 0;
}

.paid-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 3vw, 34px);
  background: rgba(244, 243, 251, 0.05);
}

.paid-bar p {
  max-width: 760px;
  margin: 10px 0 0;
}

.report-console p,
.report-console h3 {
  overflow-wrap: anywhere;
}

.evidence-list {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  max-width: 1180px;
}

.evidence-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 243, 251, 0.045);
  padding: clamp(20px, 2.4vw, 26px);
}

.evidence-list h3 {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 720;
}

.evidence-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.full-report-panel {
  max-width: 1180px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(244, 243, 251, 0.1), rgba(244, 243, 251, 0.035)),
    rgba(18, 19, 29, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.full-report-panel.is-hidden {
  display: none;
}

.full-report-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.full-report-head h3 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.full-report-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.full-report-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-report-sections article {
  min-height: 280px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
}

.full-report-sections article:nth-child(2n) {
  border-right: 0;
}

.full-report-sections article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.full-report-sections h4 {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 21px;
}

.full-report-sections ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.full-report-sections li {
  color: var(--muted);
  line-height: 1.72;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .dossier-copy,
  fieldset,
  .report-console,
  .full-report-panel,
  .secondary-button {
    background: var(--bg-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .dossier-panel,
  .workbench,
  .report-layout,
  .evidence-section {
    animation: reveal-up 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .dossier-panel {
    animation-delay: 90ms;
  }

  .workbench,
  .report-layout,
  .evidence-section {
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .hero-shell,
  .evidence-list {
    grid-template-columns: 1fr;
  }

  .report-head,
  .report-main,
  .report-slices,
  .paid-bar,
  .full-report-head,
  .full-report-sections {
    grid-template-columns: 1fr;
  }

  .path-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .time-correction {
    border-top: 1px solid rgba(216, 208, 255, 0.25);
    border-left: 0;
    padding-top: 14px;
    padding-left: 0;
  }

  .report-slices article,
  .report-slices article:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-slices article:last-child {
    border-bottom: 0;
  }

  .paid-bar .secondary-button {
    width: 100%;
  }

  .full-report-sections article,
  .full-report-sections article:nth-child(2n),
  .full-report-sections article:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .full-report-sections article:last-child {
    border-bottom: 0;
  }

  .hero-shell {
    min-height: auto;
  }

  .dossier-panel {
    min-height: 500px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-shell,
  .workbench,
  .report-layout,
  .evidence-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .form-grid,
  .wide-field {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .dossier-panel {
    min-height: 430px;
  }

  .dossier-copy {
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 20px;
  }
}
