/* Static frontend served by the independent Nginx component. */
:root {
  color: #eef6f3;
  background: #081210;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --surface: rgba(18, 39, 34, 0.72);
  --surface-strong: #142a25;
  --line: rgba(193, 225, 214, 0.16);
  --muted: #9bb4ac;
  --accent: #7cf0c0;
  --accent-dark: #143e31;
  --error: #ff9f91;
  --error-dark: #4a211e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 176, 134, 0.2), transparent 32rem),
    linear-gradient(145deg, #081210 0%, #0c1d19 55%, #07100e 100%);
}

.shell {
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.hero {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.journey,
.evidence,
.results {
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(1rem);
}

.results {
  margin-top: 2.5rem;
}

.results__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.results__heading h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.results__heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.results__actions {
  display: grid;
  min-width: min(18rem, 100%);
  gap: 0.45rem;
}

.results__actions label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

select {
  width: 100%;
  padding: 0.65rem 2.4rem 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: inherit;
  background: #0c1b17;
  font: inherit;
}

select:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #0c1b17;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

th,
td {
  max-width: 22rem;
  padding: 0.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--accent);
  background: #10241f;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

td {
  color: #d9e8e3;
}

tbody tr:nth-child(even) td {
  background: rgba(20, 42, 37, 0.45);
}

td a {
  color: var(--accent);
}

.results__empty {
  margin: 1rem 0 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading h2 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.9rem;
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage {
  position: relative;
  min-height: 11rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(7, 17, 14, 0.55);
}

.stage__number {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.stage h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.stage__status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.stage__mark {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  font-weight: 800;
}

.stage--passed {
  border-color: rgba(124, 240, 192, 0.42);
  background: linear-gradient(155deg, rgba(20, 62, 49, 0.72), rgba(7, 17, 14, 0.6));
}

.stage--passed .stage__mark {
  color: #07100e;
  background: var(--accent);
}

.stage--failed {
  border-color: rgba(255, 159, 145, 0.5);
  background: linear-gradient(155deg, rgba(74, 33, 30, 0.75), rgba(7, 17, 14, 0.6));
}

.stage--failed .stage__mark {
  color: #210907;
  background: var(--error);
}

.stage--checking .stage__mark {
  color: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.evidence__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--line);
}

.evidence__grid div {
  min-width: 0;
  padding: 1rem;
  background: #0c1b17;
}

dt {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
}

button {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(124, 240, 192, 0.42);
  border-radius: 0.55rem;
  color: var(--accent);
  background: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

button:hover,
button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 159, 145, 0.4);
  border-radius: 0.7rem;
  color: var(--error);
  background: var(--error-dark);
}

footer {
  display: flex;
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

footer a {
  color: var(--accent);
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

@media (max-width: 700px) {
  .shell {
    padding-top: 3rem;
  }

  .stages,
  .evidence__grid {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: auto;
  }

  .stage__number {
    margin-bottom: 1.5rem;
  }

  .section-heading,
  .results__heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage--checking .stage__mark {
    animation: none;
  }
}
