:root {
  --bg: #fbfaf5;
  --surface: #ffffff;
  --surface-soft: #f0f5ee;
  --ink: #171717;
  --muted: #68645f;
  --line: #e6e0d7;
  --accent: #0f766e;
  --accent-strong: #0b5c55;
  --accent-soft: #d8f0ea;
  --amber: #b7791f;
  --rose: #b84a62;
  --paper: #fffaf0;
  --blue: #2f5f98;
  --shadow: 0 22px 70px rgba(23, 23, 23, 0.1);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(216, 240, 234, 0.85), rgba(216, 240, 234, 0) 260px),
    radial-gradient(circle at 92% 12%, rgba(255, 244, 220, 0.9), rgba(255, 244, 220, 0) 280px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(251, 250, 245, 0) 420px),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid rgba(223, 229, 221, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

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

.site-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.hero,
.section,
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.64fr);
  align-items: center;
  gap: clamp(28px, 6vw, 64px);
  min-height: 460px;
  padding: 60px 0 38px;
}

.hero-copy {
  max-width: 780px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  font-weight: 600;
}

.hero-intro,
.section-heading p,
.page-title p {
  color: var(--muted);
}

.hero-intro {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.live-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.live-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--line);
}

.live-panel-head span {
  color: var(--accent-strong);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.live-panel-head strong {
  color: var(--muted);
  font-size: 13px;
}

.live-panel a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.live-panel a:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.07);
}

.live-panel a strong,
.live-panel a span {
  display: block;
}

.live-panel a strong {
  margin-bottom: 4px;
}

.live-panel a span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.content-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.section {
  padding: 42px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading h2,
.page-title h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.category-grid,
.tool-grid,
.live-tool-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.live-tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.category-card,
.tool-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.category-card {
  display: flex;
  flex-direction: column;
}

.category-card:hover,
.tool-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 12px 34px rgba(25, 32, 29, 0.08);
  transform: translateY(-2px);
}

.card-icon,
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.category-card h3,
.tool-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.category-card p,
.tool-card p,
.lab-panel p,
.content-panel p,
.empty-state p {
  margin: 0;
  color: var(--muted);
}

.card-status,
.plan-note,
.tool-date {
  color: var(--muted);
  font-size: 13px;
}

.card-status {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 800;
}

.card-status.live {
  color: var(--accent-strong);
}

.plan-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  font-weight: 800;
}

.tool-date {
  margin: -4px 0 10px;
  font-weight: 700;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.tag,
.section-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag.pending {
  background: #f2f2f0;
  color: #77736e;
}

.tag.live {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.tag.planning {
  background: #f2f2f0;
  color: #77736e;
}

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

.tool-card.featured {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--surface);
}

.bento-grid .tool-card:not(.roadmap-note),
.live-tool-grid .tool-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

.bento-grid .text-link,
.bento-grid .inline-tool-link,
.live-tool-grid .text-link,
.live-tool-grid .inline-tool-link {
  margin-top: auto;
}

.roadmap-note {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(160px, 0.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: auto;
  background: #fbf8f0;
}

.tool-card:has(.tag.pending) {
  opacity: 0.76;
}

.about-band {
  max-width: 760px;
  padding: clamp(24px, 5vw, 40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-band h2 {
  font-size: clamp(28px, 5vw, 44px);
}

.about-band p:not(.eyebrow) {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #33433c;
  font-weight: 700;
}

.inline-tool-link {
  margin-top: 24px;
}

.section-count {
  margin: 0;
  background: var(--surface-soft);
  color: var(--muted);
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171717;
  color: #fff;
}

.workflow-band .eyebrow {
  color: #91d8ce;
}

.workflow-band h2 {
  font-size: clamp(30px, 5vw, 52px);
}

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

.workflow-steps div {
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.workflow-steps span {
  display: block;
  margin-bottom: 50px;
  color: #91d8ce;
  font-weight: 900;
}

.workflow-steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.page-shell {
  padding: 66px 0;
}

.page-shell.narrow {
  width: min(820px, calc(100% - 40px));
}

.page-shell.standalone {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.page-title {
  margin-bottom: 42px;
}

.tool-section {
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
}

.content-panel {
  padding: clamp(22px, 4vw, 36px);
}

.content-panel h2 {
  margin-top: 24px;
  font-size: 24px;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel p {
  margin-top: 8px;
}

.empty-state {
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
}

.empty-state .empty-icon {
  width: auto;
  min-width: 54px;
  margin-inline: auto;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 42px);
}

.empty-state .button {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 14px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .category-grid,
  .tool-grid,
  .live-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-grid,
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    background: var(--surface);
  }

  .hero,
  .section,
  .page-shell,
  .page-shell.narrow {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 38px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .live-panel {
    gap: 8px;
    padding: 14px;
  }

  .live-panel-head {
    padding-bottom: 10px;
  }

  .live-panel-head span {
    font-size: 32px;
  }

  .live-panel a {
    padding: 10px 12px;
  }

  .live-panel a span {
    display: none;
  }

  .category-grid,
  .tool-grid,
  .live-tool-grid {
    grid-template-columns: 1fr;
  }

  .row-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .roadmap-note {
    grid-template-columns: 1fr;
  }
}
