:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #09090b;
  color: #f4f4f5;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.25), transparent 34rem),
    radial-gradient(circle at 90% 40%, rgba(126, 34, 206, 0.22), transparent 32rem),
    #09090b;
}

a {
  color: inherit;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 6rem;
}

.hero {
  max-width: 900px;
  padding: 2rem 0 6rem;
}

.eyebrow,
.card-label {
  margin: 0 0 0.75rem;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.intro {
  max-width: 720px;
  margin: 2rem 0 0;
  color: #d4d4d8;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.7;
}

.status {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.8);
  color: #d4d4d8;
  font-size: 0.9rem;
}

.status.ready {
  border-color: #166534;
  color: #86efac;
}

.status.warning {
  border-color: #a16207;
  color: #fde68a;
}

section {
  padding: 4rem 0;
  border-top: 1px solid #27272a;
}

.section-heading {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-number {
  margin: 0.35rem 0 0;
  color: #71717a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-heading p:last-child,
.world-card > p,
.footnote {
  color: #a1a1aa;
  line-height: 1.65;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.world-card {
  min-height: 360px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.world-a {
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.9), rgba(23, 37, 84, 0.88));
}

.world-b {
  background: linear-gradient(145deg, rgba(21, 128, 61, 0.9), rgba(5, 46, 22, 0.92));
}

.world-card h3,
.invalid-fixture h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

code {
  display: block;
  min-height: 4.25rem;
  margin-top: 1.5rem;
  padding: 1rem;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.28);
  color: #e0f2fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

button,
.actions a,
.invalid-fixture a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.55);
  color: #fafafa;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
button:focus-visible,
.actions a:hover,
.actions a:focus-visible,
.invalid-fixture a:hover,
.invalid-fixture a:focus-visible {
  border-color: #fff;
  outline: none;
}

.test-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: test-step;
}

.test-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #27272a;
  color: #d4d4d8;
  line-height: 1.65;
  counter-increment: test-step;
}

.test-list li::before {
  content: counter(test-step, decimal-leading-zero);
  color: #818cf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

kbd {
  padding: 0.15rem 0.4rem;
  border: 1px solid #52525b;
  border-radius: 0.3rem;
  background: #27272a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.invalid-fixture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #7f1d1d;
  border-radius: 1rem;
  background: rgba(69, 10, 10, 0.4);
}

.invalid-fixture h3 {
  margin: 0;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.requirements p {
  display: grid;
  min-height: 7rem;
  place-items: end start;
  margin: 0;
  padding: 1rem;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.75);
  font-weight: 700;
}

.footnote {
  max-width: 760px;
  margin: 1.5rem 0 0;
}

@media (max-width: 760px) {
  main {
    padding-top: 2rem;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .world-grid,
  .requirements {
    grid-template-columns: 1fr;
  }

  .world-card {
    min-height: auto;
  }

  .invalid-fixture {
    align-items: flex-start;
    flex-direction: column;
  }
}
