:root {
  --bg: #10110f;
  --ink: #f7f1e6;
  --muted: #b8afa3;
  --line: rgba(247, 241, 230, 0.16);
  --panel: #191b17;
  --panel-soft: rgba(33, 35, 30, 0.78);
  --accent: #72e0ba;
  --accent-strong: #a7f5d8;
  --sun: #ffca5f;
  --rose: #ff7b66;
  --blue: #82aaff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 72px
    ),
    linear-gradient(135deg, #0d0f0e 0%, #18120f 46%, #101c18 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-header::before {
  background: rgba(18, 19, 16, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(247, 241, 230, 0.14);
  border-radius: 999px;
  bottom: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  content: "";
  left: 14px;
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: -1;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 8px;
  color: #0c1713;
  display: grid;
  font-weight: 900;
  height: 42px;
  justify-content: center;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 9px 13px;
}

.site-nav a:hover {
  background: rgba(114, 224, 186, 0.12);
  color: var(--accent-strong);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 24px 64px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.7fr);
  min-height: calc(100vh - 128px);
  padding: 28px 0 52px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 860px;
}

.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.test-card button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(114, 224, 186, 0.18);
  color: #0c1713;
}

.secondary-button {
  background: rgba(247, 241, 230, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.test-card button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  background:
    linear-gradient(155deg, rgba(31, 33, 28, 0.96), rgba(20, 24, 21, 0.86)),
    repeating-linear-gradient(
      -45deg,
      rgba(114, 224, 186, 0.08) 0,
      rgba(114, 224, 186, 0.08) 1px,
      transparent 1px,
      transparent 14px
    );
  border: 1px solid rgba(247, 241, 230, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 470px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.panel-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.status-dot {
  background: var(--sun);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 202, 95, 0.16);
  height: 12px;
  width: 12px;
}

.status-dot.running {
  animation: pulse 900ms infinite alternate;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(130, 170, 255, 0.16);
}

.status-dot.complete {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(114, 224, 186, 0.16);
}

.score-ring {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, var(--panel) 0 58%, transparent 59%),
    conic-gradient(var(--accent) 0deg, var(--line) 0deg);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  margin: 56px auto 0;
  max-width: 300px;
  padding: 38px;
  place-content: center;
  width: 76%;
}

.score-ring span {
  font-size: clamp(3rem, 9vw, 5.3rem);
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
  margin-top: 10px;
}

.signal-grid {
  bottom: 22px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 24px;
  position: absolute;
  right: 24px;
}

.signal-grid span {
  background: rgba(114, 224, 186, 0.1);
  border: 1px solid rgba(114, 224, 186, 0.14);
  border-radius: 8px;
  height: 34px;
}

.signal-grid span.active {
  background: var(--sun);
  border-color: rgba(255, 202, 95, 0.24);
}

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 54px;
}

.metrics article {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.metrics span {
  display: block;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.metrics p {
  color: var(--muted);
  font-weight: 800;
  margin: 10px 0 0;
}

.workbench,
.results {
  padding: 44px 0 8px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 0;
}

.test-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 18px;
  min-height: 190px;
  padding: 20px;
}

.test-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.test-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.test-card footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

.badge {
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.badge.queued {
  background: rgba(255, 202, 95, 0.18);
  color: #ffe5a3;
}

.badge.running {
  background: rgba(130, 170, 255, 0.18);
  color: #c5d6ff;
}

.badge.passed {
  background: rgba(114, 224, 186, 0.16);
  color: var(--accent-strong);
}

.test-card button {
  background: rgba(247, 241, 230, 0.12);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 38px;
  padding: 0 13px;
}

.console {
  background: #090b0a;
  border: 1px solid rgba(247, 241, 230, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #dfffee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  min-height: 180px;
  overflow: auto;
  padding: 20px;
}

.console p {
  line-height: 1.7;
  margin: 0;
}

.console .muted-line {
  color: #91a89d;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.25);
  }
}

@media (max-width: 850px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    position: relative;
  }

  .site-header::before {
    border-radius: 8px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 400px;
  }

  .metrics,
  .test-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
