:root {
  color-scheme: light;
  --ink: #111814;
  --muted: #68716b;
  --faint: #929a94;
  --paper: #f3f1eb;
  --panel: rgba(255, 255, 255, 0.64);
  --line: rgba(17, 24, 20, 0.13);
  --green: #15977d;
  --green-soft: #dff2ec;
  --amber: #b87918;
  --amber-soft: #f7ead2;
  --red: #be4b43;
  --red-soft: #f6dfdc;
  --shadow: 0 18px 55px rgba(37, 45, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 4%, rgba(36, 190, 158, 0.12), transparent 30rem),
    linear-gradient(rgba(17, 24, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 20, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 72px 72px, 72px 72px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-link:hover,
.header-link:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
}

.header-link-primary {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--ink);
  box-shadow: 0 9px 24px rgba(17, 24, 20, 0.14);
  color: white;
}

.header-link-primary:hover,
.header-link-primary:focus-visible {
  background: var(--green);
  color: white;
  outline: 4px solid rgba(21, 151, 125, 0.13);
}

main {
  padding: 76px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: end;
  padding-bottom: 58px;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px var(--green-soft);
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.identity-card,
.test-card,
.result-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.identity-card {
  padding: 28px;
  border-radius: 28px;
}

.identity-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 36px;
}

.identity-state strong,
.identity-state span {
  display: block;
}

.identity-state strong {
  font-size: 19px;
}

.identity-state span:not(.state-dot) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.state-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 7px rgba(124, 132, 127, 0.12);
}

.state-dot[data-state="passed"] {
  background: var(--green);
  box-shadow: 0 0 0 7px var(--green-soft);
}

.state-dot[data-state="failed"] {
  background: var(--red);
  box-shadow: 0 0 0 7px var(--red-soft);
}

.login-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.security-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: end;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.security-strip h2 {
  margin-top: 12px;
  font-size: clamp(25px, 3vw, 36px);
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.security-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 56px 0;
}

.test-card,
.result-card {
  min-height: 620px;
  padding: 30px;
  border-radius: 24px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.card-heading h2 {
  margin-top: 10px;
  font-size: 31px;
}

.duration-badge,
.result-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(124, 132, 127, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-pill[data-state="running"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.result-pill[data-state="passed"] {
  background: var(--green-soft);
  color: var(--green);
}

.result-pill[data-state="warning"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.result-pill[data-state="failed"] {
  background: var(--red-soft);
  color: var(--red);
}

form {
  display: grid;
  gap: 26px;
  margin-top: 42px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label,
.field-label-row label {
  font-size: 14px;
  font-weight: 800;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.field-label-row span {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

select,
input[type="password"] {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

select {
  padding: 0 42px 0 15px;
}

input[type="password"] {
  padding: 0 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

select:focus,
input[type="password"]:focus {
  border-color: rgba(21, 151, 125, 0.58);
  box-shadow: 0 0 0 4px rgba(21, 151, 125, 0.1);
}

select:disabled,
input:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.field-hint {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.model-health {
  display: flex;
  min-height: 22px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.model-health-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--faint);
}

.model-health[data-state="passed"] .model-health-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.model-health[data-state="warning"] .model-health-dot,
.model-health[data-state="loading"] .model-health-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.model-health[data-state="failed"] .model-health-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.model-health time {
  margin-left: auto;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.consent-row label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.form-error {
  padding: 13px 15px;
  border: 1px solid rgba(190, 75, 67, 0.24);
  border-radius: 12px;
  background: var(--red-soft);
  color: #7d302c;
  font-size: 12px;
  line-height: 1.6;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 820;
}

.primary-button:not(:disabled):hover,
.primary-button:not(:disabled):focus-visible {
  background: #1b2520;
  outline: 4px solid rgba(21, 151, 125, 0.12);
}

.cooldown-note {
  margin: -14px 2px 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.result-summary {
  min-height: 45px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.result-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.result-context div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
}

.result-context dt,
.result-context dd {
  margin: 0;
}

.result-context dt {
  color: var(--faint);
  font-size: 9px;
}

.result-context dd {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 67px;
  border-bottom: 1px solid var(--line);
}

.check-index {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.check-row strong,
.check-row div span {
  display: block;
}

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

.check-row div span {
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
}

.check-state {
  display: inline-flex;
  min-width: 54px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(124, 132, 127, 0.1);
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.check-state[data-state="running"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-state[data-state="passed"] {
  background: var(--green-soft);
  color: var(--green);
}

.check-state[data-state="warning"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-state[data-state="failed"] {
  background: var(--red-soft);
  color: var(--red);
}

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

.metric {
  min-width: 0;
  padding: 13px 10px;
  border-radius: 12px;
  background: rgba(17, 24, 20, 0.045);
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric strong {
  margin-top: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.result-actions[data-single="true"] {
  grid-template-columns: 1fr;
}

.secondary-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(21, 151, 125, 0.42);
  outline: 3px solid rgba(21, 151, 125, 0.1);
}

.secondary-button-strong {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.result-actions p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.deep-test-entry {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(42, 193, 160, 0.34), transparent 45%),
    var(--ink);
  box-shadow: 0 16px 34px rgba(17, 24, 20, 0.16);
  color: white;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.deep-test-entry span,
.deep-test-entry small,
.deep-test-entry strong,
.deep-test-entry em {
  display: block;
}

.deep-test-entry small {
  color: #7fe0cb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.deep-test-entry strong {
  margin-top: 8px;
  font-size: 18px;
}

.deep-test-entry em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-style: normal;
}

.deep-test-entry b {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 19px;
}

.deep-test-entry:hover,
.deep-test-entry:focus-visible {
  box-shadow: 0 20px 42px rgba(17, 24, 20, 0.22);
  outline: 4px solid rgba(21, 151, 125, 0.12);
  transform: translateY(-2px);
}

.scope-note {
  padding: 56px 0 16px;
  border-top: 1px solid var(--line);
}

.scope-note h2 {
  max-width: 760px;
  margin-top: 13px;
}

.scope-note > h2 + p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.result-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 28px;
}

.result-legend p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
}

.result-legend strong,
.result-legend span {
  display: block;
}

.result-legend strong {
  color: var(--ink);
  font-size: 12px;
}

.result-legend span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.inline-link {
  color: var(--green);
  font-weight: 800;
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero,
  .security-strip,
  .workspace {
    grid-template-columns: 1fr;
  }

  .identity-card {
    max-width: 560px;
  }

  .test-card,
  .result-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand {
    gap: 10px;
    font-size: 14px;
  }

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

  .header-link {
    padding: 9px 8px;
    font-size: 12px;
  }

  .header-actions .header-link:first-child {
    display: none;
  }

  main {
    padding-top: 50px;
  }

  .hero {
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 66px);
  }

  .security-list {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 42px 0;
  }

  .test-card,
  .result-card {
    padding: 22px;
  }

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

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

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .quick-self-test .header-actions .header-link:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .deep-test-entry:hover,
  .deep-test-entry:focus-visible {
    transform: none;
  }
}
