:root {
  color-scheme: light;
  --navy-950: #061437;
  --navy-900: #091b48;
  --navy-800: #102b65;
  --blue-700: #0a4fd9;
  --blue-600: #1265f1;
  --blue-500: #2b78ff;
  --blue-100: #e8f1ff;
  --blue-50: #f3f7ff;
  --gold-600: #d48200;
  --gold-500: #e59a18;
  --ink: #101a33;
  --muted: #63708c;
  --line: #dce4f1;
  --line-strong: #cbd6e8;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --shadow-sm: 0 8px 30px rgba(9, 27, 72, 0.07);
  --shadow-md: 0 22px 70px rgba(9, 27, 72, 0.13);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: min(1440px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#ecosystem,
#directory,
#guide {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(48px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(220, 228, 241, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--gold-500);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  color: var(--navy-950);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: #8490aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 33px;
  color: #41506f;
  font-size: 14px;
  font-weight: 700;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: var(--blue-600);
  transition: right 180ms ease;
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta):focus-visible::after {
  right: 0;
}

.nav-cta {
  padding: 11px 21px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 8px;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: clamp(52px, 6vw, 108px);
  width: var(--content);
  margin: 0 auto;
  padding: 88px 0 78px;
}

.hero-grid {
  position: absolute;
  z-index: -3;
  inset: 0 calc((100vw - 100%) / -2);
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(10, 79, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 79, 217, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 93%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-glow-one {
  width: 440px;
  height: 440px;
  right: 8%;
  top: 14%;
  background: radial-gradient(circle, rgba(18, 101, 241, 0.16), rgba(18, 101, 241, 0));
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  left: -10%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(229, 154, 24, 0.09), rgba(229, 154, 24, 0));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow > span {
  width: 25px;
  height: 2px;
  background: var(--gold-500);
}

.hero h1 {
  margin: 22px 0 24px;
  color: var(--navy-950);
  font-size: clamp(48px, 4.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--blue-700);
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: #566581;
  font-size: 17px;
  line-height: 1.9;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 640px;
  height: 62px;
  margin-top: 34px;
  padding: 0 16px 0 19px;
  background: #fff;
  border: 1px solid #cbd8ec;
  border-radius: 12px;
  box-shadow: 0 14px 42px rgba(9, 27, 72, 0.09);
  transition: border 180ms ease, box-shadow 180ms ease;
}

.hero-search:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 16px 48px rgba(18, 101, 241, 0.16);
}

.hero-search svg,
.compact-search svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.hero-search input,
.compact-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--navy-950);
  background: transparent;
}

.hero-search input {
  font-size: 15px;
}

.hero-search input::placeholder,
.compact-search input::placeholder {
  color: #98a4ba;
}

.hero-search kbd {
  padding: 7px 11px;
  color: #fff;
  background: var(--blue-700);
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  color: #8290aa;
  font-size: 12px;
}

.hero-quick > span {
  margin-right: 4px;
}

.hero-quick button {
  min-height: 36px;
  padding: 6px 10px;
  color: #52617d;
  background: #f5f8fd;
  border: 1px solid #e0e7f2;
  border-radius: 999px;
  cursor: pointer;
}

.hero-quick button:hover,
.hero-quick button:focus-visible {
  color: var(--blue-700);
  border-color: #9dbcf6;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 34px 0 0;
}

.hero-stats div {
  min-width: 135px;
  padding-right: 30px;
}

.hero-stats div + div {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--navy-950);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #7f8ba4;
  font-size: 12px;
}

.hero-browser {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(173, 190, 217, 0.74);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transform: perspective(1400px) rotateY(-2deg) rotateX(0.6deg);
}

.hero-browser::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 22px 18px -22px;
  border: 1px solid rgba(18, 101, 241, 0.22);
  border-radius: 22px;
}

.browser-bar {
  min-height: 50px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 17px;
  color: #6d7a94;
  background: #f3f6fb;
  border-bottom: 1px solid #dbe3ef;
  font-size: 10px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  background: #c7d1e1;
  border-radius: 50%;
}

.browser-dots i:first-child {
  background: var(--gold-500);
}

.browser-address {
  overflow: hidden;
  padding: 8px 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 7px;
}

.browser-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #19734a;
  font-weight: 700;
}

.browser-secure svg {
  width: 13px;
  height: 13px;
}

.browser-content {
  padding: 28px;
}

.browser-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 0 2px 20px;
}

.browser-heading > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.browser-heading > div span {
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.browser-heading > div strong {
  color: var(--navy-950);
  font-size: 20px;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  color: #19734a;
  background: #eefaf4;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.pulse i {
  width: 6px;
  height: 6px;
  background: #18a765;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(24, 167, 101, 0.13);
}

.featured-list {
  display: grid;
  gap: 10px;
}

.featured-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 102px;
  padding: 14px;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.featured-card:hover,
.featured-card:focus-visible {
  transform: translateX(4px);
  border-color: #9ebbf0;
  box-shadow: 0 12px 30px rgba(9, 27, 72, 0.08);
}

.featured-code {
  width: 52px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-700);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.featured-code.energy {
  background: #0c7193;
}

.featured-code.party {
  background: #b22531;
}

.featured-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-copy small {
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.featured-copy strong,
.featured-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-copy strong {
  color: var(--navy-950);
  font-size: 14px;
}

.featured-copy em {
  color: #8190aa;
  font-size: 10px;
  font-style: normal;
}

.featured-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 50%;
  font-size: 17px;
}

.browser-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding: 14px 2px 3px;
  color: var(--blue-700);
  border-top: 1px solid #e7ecf4;
  font-size: 12px;
  font-weight: 800;
}

.browser-more span {
  font-size: 18px;
}

.trust-strip {
  width: var(--content);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.trust-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 78px;
  padding: 16px 26px;
}

.trust-strip > div + div {
  border-left: 1px solid var(--line);
}

.trust-strip svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.trust-strip span {
  color: #69768e;
  font-size: 12px;
  line-height: 1.5;
}

.trust-strip strong {
  display: block;
  color: var(--navy-950);
  font-size: 14px;
}

.ecosystem {
  width: var(--content);
  margin: 100px auto 0;
  padding: 66px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(43, 120, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #061437 0%, #0a2257 58%, #0d3f9b 130%);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(6, 20, 55, 0.2);
}

.ecosystem-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.ecosystem-heading h2 {
  margin: 17px 0 15px;
  font-size: clamp(35px, 3.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.ecosystem-heading p {
  max-width: 760px;
  margin: 0;
  color: #b7c7e4;
  font-size: 14px;
  line-height: 1.85;
}

.ecosystem-note {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px;
  border-left: 2px solid var(--gold-500);
  background: rgba(255, 255, 255, 0.05);
}

.ecosystem-note strong {
  color: #fff;
  font-size: 17px;
}

.ecosystem-note span {
  color: #9eb0cf;
  font-size: 10px;
  line-height: 1.65;
}

.ecosystem-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ecosystem-filter {
  min-height: 40px;
  padding: 8px 15px;
  color: #b9c9e5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ecosystem-filter:hover,
.ecosystem-filter:focus-visible,
.ecosystem-filter.active {
  color: var(--navy-950);
  background: #fff;
  border-color: #fff;
}

.ecosystem-filter.active {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

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

.ecosystem-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 302px;
  padding: 21px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(153, 190, 255, 0.55);
}

.ecosystem-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ecosystem-brand > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #1872ff, #083c9e);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.17);
}

.ecosystem-brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ecosystem-brand small {
  color: #88aff7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ecosystem-brand strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecosystem-copy {
  margin-top: 20px;
}

.relation-tag {
  display: inline-flex;
  padding: 5px 8px;
  color: #f2bd59;
  background: rgba(229, 154, 24, 0.1);
  border: 1px solid rgba(229, 154, 24, 0.28);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
}

.ecosystem-copy h3 {
  margin: 11px 0 8px;
  font-size: 17px;
  line-height: 1.38;
}

.ecosystem-copy p {
  margin: 0;
  color: #aebfda;
  font-size: 11px;
  line-height: 1.7;
}

.ecosystem-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.ecosystem-actions > a:first-child {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 41px;
  padding: 9px 12px;
  color: var(--navy-950);
  background: #fff;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.ecosystem-actions svg {
  width: 15px;
  height: 15px;
}

.ecosystem-source {
  flex: 0 0 auto;
  color: #aac4f5;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 700;
}

.directory {
  width: var(--content);
  margin: 0 auto;
  padding: 116px 0 128px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 43px;
}

.section-heading h2 {
  margin: 16px 0 0;
  color: var(--navy-950);
  font-size: clamp(36px, 3.3vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading > p {
  margin: 0;
  padding-left: 20px;
  color: #66748f;
  border-left: 2px solid var(--gold-500);
  font-size: 14px;
  line-height: 1.85;
}

.toolbar-shell {
  overflow: hidden;
  margin-bottom: 22px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 14px 10px 20px;
}

.toolbar-row + .toolbar-row {
  border-top: 1px solid var(--line);
}

.toolbar-label {
  flex: 0 0 34px;
  color: #8995aa;
  font-size: 11px;
  font-weight: 800;
}

.filter-list {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
}

.filter,
.tech-filter {
  min-height: 38px;
  padding: 8px 13px;
  color: #56647c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible,
.tech-filter:hover,
.tech-filter:focus-visible {
  color: var(--blue-700);
  background: #fff;
  border-color: #cfdaea;
}

.filter.active,
.tech-filter.active {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 5px 15px rgba(10, 79, 217, 0.17);
}

.compact-search {
  width: min(260px, 23vw);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #d2dceb;
  border-radius: 8px;
}

.compact-search svg {
  width: 17px;
  height: 17px;
}

.compact-search input {
  font-size: 12px;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #77849c;
  font-size: 12px;
}

.result-meta button {
  padding: 5px 0;
  color: var(--blue-700);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

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

.case-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 6px 24px rgba(9, 27, 72, 0.045);
  transition: transform 190ms ease, border 190ms ease, box-shadow 190ms ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: #a9bee2;
  box-shadow: 0 18px 46px rgba(9, 27, 72, 0.105);
}

.card-visual {
  position: relative;
  isolation: isolate;
  height: 116px;
  overflow: hidden;
  color: #fff;
  background: #0a4fd9;
}

.card-visual.energy {
  background: #086b86;
}

.card-visual.party {
  background: #9a2130;
}

.card-visual.culture {
  background: #553b91;
}

.card-visual.science {
  background: #126b63;
}

.card-visual.urban {
  background: #284f91;
}

.card-visual.platform,
.featured-code.platform {
  background: #1749a5;
}

.card-visual.auto,
.featured-code.auto {
  background: #115e8f;
}

.card-visual.soe,
.featured-code.soe {
  background: #8b2c2c;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 21px 21px;
  transform: perspective(200px) rotateX(48deg) scale(1.35);
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.visual-orbit.one {
  width: 150px;
  height: 150px;
  right: -24px;
  top: -60px;
}

.visual-orbit.two {
  width: 92px;
  height: 92px;
  right: 5px;
  top: -32px;
}

.card-visual::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 1px;
  right: -28px;
  bottom: 25px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-15deg);
}

.card-visual > strong {
  position: absolute;
  left: 21px;
  bottom: 11px;
  font-family: Arial, sans-serif;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -0.07em;
  opacity: 0.96;
}

.card-visual > small {
  position: absolute;
  left: 112px;
  bottom: 17px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.visual-index {
  position: absolute;
  z-index: 1;
  right: 16px;
  top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.card-body {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8490a6;
  font-size: 9px;
  font-weight: 700;
}

.card-meta > span:not(.access-state)::after {
  content: "·";
  margin-left: 7px;
  color: #c0c8d5;
}

.access-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #158252;
}

.access-state i {
  width: 6px;
  height: 6px;
  background: #19a967;
  border-radius: 50%;
}

.access-state.official {
  color: #9d670d;
}

.access-state.official i {
  background: var(--gold-500);
}

.card-body h3 {
  margin: 16px 0 7px;
  color: var(--navy-950);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-org {
  min-height: 18px;
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 700;
}

.card-body > p {
  margin: 13px 0 18px;
  color: #66738b;
  font-size: 12px;
  line-height: 1.75;
}

.card-proof {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px 11px;
  background: #f6f8fc;
  border-left: 2px solid var(--gold-500);
}

.card-proof span {
  color: #949eb1;
  font-size: 9px;
}

.card-proof strong {
  overflow: hidden;
  color: #53617a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin-top: 15px;
}

.open-case {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  min-height: 44px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.open-case svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.open-case:hover,
.open-case:focus-visible {
  background: var(--blue-700);
}

.open-case:hover svg,
.open-case:focus-visible svg {
  transform: translateX(3px);
}

.source-link,
.copy-link {
  width: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid #d8e4f7;
  border-radius: 7px;
}

.source-link svg,
.copy-link svg {
  width: 17px;
  height: 17px;
}

.source-link span {
  display: none;
}

.copy-link {
  cursor: pointer;
}

.source-link:hover,
.source-link:focus-visible,
.copy-link:hover,
.copy-link:focus-visible {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.empty-state {
  margin-top: 20px;
  padding: 72px 20px;
  text-align: center;
  background: #f8fafd;
  border: 1px dashed #c9d5e7;
  border-radius: 14px;
}

.empty-state > span {
  display: block;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.empty-state strong {
  display: block;
  margin-top: 12px;
  color: var(--navy-950);
  font-size: 24px;
}

.empty-state p {
  color: #77839a;
  font-size: 13px;
}

.empty-state button {
  margin-top: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-700);
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.guide {
  width: var(--content);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
  margin: 0 auto 96px;
  padding: 70px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 22px;
}

.eyebrow.light {
  color: #a8c6ff;
}

.guide h2 {
  margin: 20px 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.guide-intro > p {
  margin: 0;
  color: #b0bdd4;
  font-size: 13px;
  line-height: 1.85;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.12);
}

.guide-steps li {
  min-height: 138px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  padding: 25px;
  background: var(--navy-900);
}

.guide-steps li > span {
  color: var(--gold-500);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.guide-steps strong {
  font-size: 16px;
}

.guide-steps p {
  margin: 8px 0 0;
  color: #aebbd2;
  font-size: 11px;
  line-height: 1.65;
}

.site-footer {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px max(48px, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--line);
}

.site-footer > div:first-child,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.site-footer > div:first-child {
  gap: 8px;
}

.site-footer > div:first-child span {
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-footer strong {
  color: var(--navy-950);
  font-size: 18px;
}

.footer-contact {
  align-items: flex-end;
  gap: 5px;
}

.footer-contact span {
  color: #8793a8;
  font-size: 10px;
}

.footer-contact a {
  color: var(--navy-950);
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.copy-toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

:focus-visible {
  outline: 3px solid rgba(43, 120, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  :root {
    --content: min(1100px, calc(100vw - 56px));
  }

  .hero {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 42px;
  }

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

  .hero-browser {
    transform: none;
  }

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

  .compact-search {
    width: 220px;
  }

  .guide {
    gap: 55px;
    padding: 54px;
  }

  .ecosystem {
    padding: 50px;
  }

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

@media (max-width: 900px) {
  :root {
    --content: calc(100vw - 40px);
  }

  .site-header {
    padding-inline: 24px;
  }

  .main-nav > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 72px;
  }

  .hero-copy > p {
    max-width: 720px;
  }

  .hero-browser {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    justify-content: flex-start;
  }

  .trust-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toolbar-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .compact-search {
    width: 100%;
    margin-left: 52px;
  }

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

  .ecosystem-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding-inline: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --content: calc(100vw - 28px);
  }

  .site-header {
    min-height: 68px;
    padding-inline: 15px;
  }

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

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    gap: 44px;
    padding: 55px 0 52px;
  }

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

  .hero-copy > p {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-search {
    height: 56px;
  }

  .hero-search kbd {
    display: none;
  }

  .hero-stats div {
    min-width: 0;
    flex: 1;
    padding-right: 13px;
  }

  .hero-stats div + div {
    padding-left: 13px;
  }

  .hero-stats dt {
    font-size: 25px;
  }

  .browser-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .browser-secure {
    display: none;
  }

  .browser-content {
    padding: 18px;
  }

  .browser-heading {
    gap: 10px;
  }

  .browser-heading > div strong {
    font-size: 17px;
  }

  .featured-card {
    grid-template-columns: 45px minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 11px;
  }

  .featured-code {
    width: 45px;
    height: 58px;
  }

  .directory {
    padding: 82px 0 90px;
  }

  .ecosystem {
    margin-top: 70px;
    padding: 36px 20px;
    border-radius: 17px;
  }

  .ecosystem-heading h2 {
    font-size: 34px;
  }

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

  .ecosystem-card {
    min-height: 285px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  .toolbar-row {
    padding: 13px;
  }

  .toolbar-label {
    width: 100%;
    flex-basis: 100%;
  }

  .filter-list {
    width: 100%;
  }

  .filter,
  .tech-filter {
    padding: 8px 10px;
    min-height: 44px;
  }

  .hero-quick button {
    min-height: 44px;
  }

  .compact-search input {
    font-size: 16px;
  }

  .compact-search {
    margin-left: 0;
  }

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

  .guide {
    gap: 36px;
    margin-bottom: 60px;
    padding: 34px 24px;
    border-radius: 16px;
  }

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

  .guide-steps li {
    min-height: 112px;
  }

  .site-footer {
    min-height: 180px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer-contact {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
