:root {
  --ink: #17251f;
  --muted: #617168;
  --surface: #f5f7f3;
  --paper: #ffffff;
  --line: #dce4dc;
  --brand: #1f6d4e;
  --brand-dark: #164b37;
  --accent: #d5f27a;
  --shadow: 0 20px 55px rgb(28 55 43 / 9%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0, rgb(213 242 122 / 24%), transparent 27rem),
    var(--surface);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--brand-dark);
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--paper);
  background: var(--brand);
  border-radius: 0.75rem;
  font-weight: 800;
}

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

.brand small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.environment-badge {
  padding: 0.45rem 0.7rem;
  color: var(--brand-dark);
  background: rgb(213 242 122 / 38%);
  border: 1px solid rgb(31 109 78 / 15%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.header-actions form {
  margin: 0;
}

.text-button {
  padding: 0.45rem 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

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

.primary-nav {
  display: flex;
  gap: 1.25rem;
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.primary-nav a,
.back-link {
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.page-heading,
.detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-heading h1,
.detail-heading h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.filter-field label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
}

.filter-actions {
  display: flex;
  gap: 0.8rem;
  align-items: end;
}

.filter-actions .primary-button {
  width: auto;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td:first-child {
  white-space: normal;
}

.data-table td small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.pagination,
.empty-state {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.empty-state {
  display: block;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 1rem;
}

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

.detail-card {
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.detail-wide {
  grid-column: 1 / -1;
}

.detail-card h2 {
  margin-top: 0;
}

.detail-card dl div,
.evidence-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-card dt,
.evidence-item small,
.stack-item span {
  color: var(--muted);
}

.detail-card dd {
  margin: 0;
  text-align: right;
}

.stack-item {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  gap: 3rem;
  align-items: end;
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(140deg, #163d2e, #205f46 68%, #39785f);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: rgb(255 255 255 / 75%);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.status-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 1rem;
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span:last-child {
  margin-top: 0.3rem;
  color: rgb(255 255 255 / 66%);
  font-size: 0.86rem;
  line-height: 1.45;
}

.status-dot {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.28rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(213 242 122 / 15%);
}

.workflow {
  margin-top: 4.5rem;
}

.section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
}

.section-heading h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgb(28 55 43 / 5%);
}

.workflow-steps li {
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
}

.workflow-steps li:last-child {
  border-right: 0;
}

.workflow-steps span {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.capability-grid article {
  position: relative;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.capability-grid h2 {
  margin: 2.5rem 0 0.7rem;
  font-size: 1.08rem;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-index {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 27rem);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: 65vh;
}

.auth-intro h1 {
  color: var(--ink);
}

.auth-intro .lede {
  color: var(--muted);
}

.auth-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.field + .field {
  margin-top: 1.2rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
}

.primary-button {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-top: 1.5rem;
  color: var(--paper);
  background: var(--brand);
  border: 0;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.form-errors,
.errorlist {
  color: #842c25;
  font-size: 0.85rem;
}

.form-errors {
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #fff1ef;
  border-radius: 0.55rem;
}

.setup-uri {
  display: block;
  padding: 0.8rem;
  margin: 1rem 0;
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-size: 0.75rem;
}

@media (max-width: 50rem) {
  main {
    padding-top: 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-steps li:nth-child(2n) {
    border-right: 0;
  }

  .workflow-steps li:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

