:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #13242b;
  --muted: #63736f;
  --line: #dbe5e2;
  --soft-line: #e9efed;
  --green: #167866;
  --green-dark: #0d554a;
  --blue: #315fce;
  --gold: #d69a22;
  --coral: #c85d42;
  --shadow: 0 18px 44px rgba(19, 36, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

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

:focus-visible {
  outline: 3px solid rgba(49, 95, 206, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  background: rgba(243, 246, 244, 0.9);
  border-bottom: 1px solid rgba(219, 229, 226, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions,
.top-nav,
.auth-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: max-content;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #f7fbfa;
  font-size: 13px;
  font-weight: 900;
}

.header-actions {
  gap: 22px;
}

.site-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 320px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.site-search span {
  font-size: 15px;
  line-height: 1;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.site-search input::placeholder {
  color: #7c8a86;
}

.site-search:focus-within {
  border-color: rgba(22, 120, 102, 0.45);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(22, 120, 102, 0.1);
}

.top-nav {
  gap: 26px;
  color: #52625e;
  font-size: 14px;
  font-weight: 700;
}

.top-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover {
  color: var(--green-dark);
  border-color: var(--green);
}

.auth-actions {
  gap: 8px;
  white-space: nowrap;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #53625f;
  font-size: 13px;
  font-weight: 800;
}

.auth-link:hover {
  border-color: rgba(22, 120, 102, 0.38);
  color: var(--green-dark);
}

.auth-link.is-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 10px auto 0;
}

.intro {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  padding: 42px 20px 30px;
  border: 1px solid rgba(219, 229, 226, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 36, 43, 0.8), rgba(19, 36, 43, 0.2) 46%, rgba(19, 36, 43, 0)),
    url("./assets/hero-lb-app-matrix.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.intro-panel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow,
.section-item span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro .eyebrow {
  color: #9fe3d4;
}

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

.intro h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
}

.intro p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.75;
}

.overview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 96px);
  gap: 1px;
  overflow: hidden;
  margin: 0;
  margin-right: 0;
  border: 1px solid rgba(219, 229, 226, 0.82);
  border-radius: 8px;
  background: rgba(219, 229, 226, 0.92);
  box-shadow: 0 18px 36px rgba(19, 36, 43, 0.12);
}

.overview div {
  min-height: 86px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.overview dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overview dd {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4f625e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.category-pill:hover,
.category-pill.is-active,
.category-pill.has-agent.is-active {
  border-color: rgba(22, 120, 102, 0.42);
  background: var(--surface);
  color: var(--green-dark);
}

.category-pill.has-agent:not(.is-active) {
  border-color: rgba(22, 120, 102, 0.2);
}

.agent-area,
.sections-area {
  padding: 28px 0 18px;
  scroll-margin-top: 88px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title .eyebrow {
  margin-bottom: 9px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

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

.agent-entry {
  display: flex;
  min-height: 262px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.98)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(19, 36, 43, 0.07);
}

.agent-entry:nth-child(2) {
  border-top-color: rgba(49, 95, 206, 0.28);
}

.agent-entry:nth-child(3) {
  border-top-color: rgba(214, 154, 34, 0.36);
}

.agent-entry:nth-child(4) {
  border-top-color: rgba(200, 93, 66, 0.32);
}

.agent-entry.is-hidden {
  display: none;
}

.agent-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.agent-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 120, 102, 0.14);
}

.status-dot.is-waiting {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 154, 34, 0.16);
}

.agent-copy h3 {
  width: 100%;
  margin: 16px 0 9px;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 900;
}

.agent-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}

.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.agent-meta span {
  padding: 5px 9px;
  border: 1px solid #d5e9e4;
  border-radius: 999px;
  background: #edf8f5;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.agent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: auto;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease;
}

.agent-link:hover {
  transform: translateY(-1px);
  background: #0b171c;
}

.agent-link.is-disabled {
  background: #edf1f0;
  color: var(--muted);
  cursor: default;
}

.agent-link.is-disabled:hover {
  transform: none;
}

.sections-area {
  padding-bottom: 72px;
}

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

.section-item {
  display: grid;
  width: 100%;
  min-height: 92px;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.section-item:hover,
.section-item.is-active,
.section-item.has-agent.is-active {
  border-color: rgba(22, 120, 102, 0.42);
  background: var(--surface);
}

.section-item.has-agent:not(.is-active) {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 120, 102, 0.22);
}

.section-item strong {
  font-size: 16px;
  font-weight: 900;
}

.section-item em {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px max(20px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 900;
}

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

  .agent-link {
    transition: none;
  }
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-search {
    width: min(42vw, 320px);
  }

  .intro {
    min-height: 420px;
    background-position: 52% center;
  }

  .overview {
    width: fit-content;
  }

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

@media (max-width: 680px) {
  main {
    width: calc(100% - 28px);
  }

  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 15px;
  }

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

  .header-actions {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .top-nav {
    gap: 18px;
  }

  .auth-actions {
    margin-left: auto;
  }

  .intro {
    min-height: 320px;
    padding: 30px 16px 20px;
    background-position: 46% center;
  }

  .intro h1 {
    font-size: 30px;
  }

  .intro p {
    font-size: 14px;
  }

  .overview {
    grid-template-columns: repeat(2, 88px);
  }

  .agent-grid,
  .section-list {
    grid-template-columns: 1fr;
  }

  .agent-entry {
    min-height: 236px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .site-footer {
    padding: 22px 14px;
  }
}

@media (max-width: 420px) {
  .auth-actions {
    width: 100%;
  }

  .auth-link {
    flex: 1;
  }

  .intro h1 {
    font-size: 27px;
  }

  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
