:root {
  color-scheme: dark;
  --bg: #08080b;
  --surface: #101014;
  --surface-2: #15151b;
  --ink: #f6f4f7;
  --muted: #aaa6b0;
  --faint: #74717a;
  --pink: #f261a5;
  --pink-soft: #ff9ccb;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --max: 1380px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); overflow-x: hidden; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #111;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.nav {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 11, .94);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; object-fit: cover; }
.brand span { display: grid; gap: 5px; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { color: #86818b; font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a { color: #b5b1ba; font-size: 13px; text-decoration: none; transition: color .2s ease; }
.nav nav a:first-child, .nav nav a:hover, .nav nav a:focus-visible { color: var(--pink-soft); }

main { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.eyebrow { margin: 0 0 16px; color: var(--pink); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; }

.hero {
  display: grid;
  grid-template-columns: minmax(400px, .83fr) minmax(580px, 1.17fr);
  gap: clamp(38px, 5vw, 86px);
  align-items: center;
  min-height: 480px;
  padding: 38px 0 30px;
}
.hero-copy { min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(54px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -.075em; }
.hero h1 span { white-space: nowrap; }
.hero h1 span { color: #aaa6b0; }
.lede { max-width: 650px; margin: 28px 0 0; color: #b7b3bd; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions a, .hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.primary { border: 1px solid var(--pink); color: #160b11; background: var(--pink); }
.secondary { border: 1px solid var(--line-strong); color: #f1eef3; background: #101014; }
.primary:hover, .primary:focus-visible { background: #ff78b8; }
.secondary:hover, .secondary:focus-visible { border-color: #66606b; background: #17171d; }

.hero-command {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  margin-top: 15px;
  padding: 10px 11px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d11;
}
.hero-command small { color: var(--pink); font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.hero-command code { min-width: 0; flex: 1; overflow: hidden; color: #c8c4cd; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.hero-command button, .command button, .install button {
  border: 0;
  border-radius: 6px;
  color: #10090d;
  background: var(--accent, var(--pink));
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.hero-command button { padding: 8px 11px; }

.hero-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  aspect-ratio: 2.02 / 1;
  background: #0c0c10;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .42);
}
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual-label, .hero-visual-state { position: absolute; border: 1px solid var(--line); background: rgba(8, 8, 11, .86); backdrop-filter: blur(12px); }
.hero-visual-label { top: 15px; left: 15px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 7px; }
.hero-visual-label b { font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.hero-visual-label small { color: #8c8791; font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.hero-visual-state { top: 15px; right: 15px; padding: 8px 10px; border-radius: 99px; color: var(--pink-soft); font-size: 10px; font-weight: 750; }

.license-strip {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(242, 97, 165, .34);
  border-radius: 14px;
  background: #111014;
}
.license-title .eyebrow { margin-bottom: 8px; }
.license-title h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.license-items { display: grid; grid-template-columns: repeat(4, 1fr); }
.license-items div { min-width: 0; padding: 2px 19px; border-left: 1px solid var(--line); }
.license-items b { display: block; margin-bottom: 7px; color: #f1edf2; font-size: 12px; }
.license-items span { display: block; color: #8f8a94; font-size: 10px; line-height: 1.6; }
.license-strip > a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--pink-soft); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }

.section { padding: 46px 0 94px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section h2, .creator h2 { margin: 0; font-size: 36px; line-height: 1.1; letter-spacing: -.05em; }
.section-head p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.search { display: grid; gap: 7px; width: min(330px, 42vw); color: #8b8790; font-size: 10px; }
.search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: white; background: #0e0e12; outline: none; }
.search input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(242, 97, 165, .13); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  animation: rise .45s both;
  animation-delay: var(--delay);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, #fff 12%); transform: translateY(-3px); }
.preview { position: relative; overflow: hidden; aspect-ratio: 2 / 1; border-bottom: 1px solid var(--line); background: #0b0b0e; }
.preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .preview img { transform: scale(1.018); }
.verified { position: absolute; top: 12px; right: 12px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 5px; color: #f7f3f6; background: rgba(8, 8, 11, .84); font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.card-body { padding: 20px; }
.meta { display: flex; justify-content: space-between; color: var(--accent); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.card h3 { margin: 13px 0 5px; font-size: 22px; letter-spacing: -.03em; }
.tagline { margin: 0; color: #d2ced6; font-size: 12px; }
.description { min-height: 43px; margin: 12px 0; color: #8d8992; font-size: 11px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 23px; margin: 14px 0 17px; }
.tags span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: #77737c; font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.install { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #09090c; }
.install code { min-width: 0; flex: 1; overflow: hidden; color: #aba7b0; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.install button { padding: 8px 9px; }

.creator { display: grid; grid-template-columns: auto 1fr minmax(320px, .65fr); gap: 34px; align-items: center; margin-bottom: 90px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #111116; }
.creator > img { width: 140px; height: 140px; border: 1px solid var(--line-strong); border-radius: 50%; object-fit: cover; }
.creator p:not(.eyebrow) { max-width: 660px; margin: 15px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.text-link { color: var(--pink-soft); font-size: 12px; font-weight: 750; text-decoration: none; }
.creator-action small { display: block; margin-top: 10px; color: var(--faint); font-size: 10px; text-align: right; }
.command { display: flex; align-items: center; gap: 9px; padding: 11px 11px 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #09090c; }
.command code { min-width: 0; flex: 1; overflow: hidden; color: #c8c4cd; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.command button { padding: 9px 11px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(28px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); color: #6d6972; font: 700 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
#toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 7px; color: white; background: rgba(23, 23, 28, .95); opacity: 0; transform: translate(-50%, 12px); transition: .18s; backdrop-filter: blur(14px); pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { grid-column: 1 / -1; padding: 70px; color: var(--muted); text-align: center; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 820px; }
  .hero-visual { max-width: 900px; }
  .license-strip { grid-template-columns: 1fr; }
  .license-items div:first-child { border-left: 0; padding-left: 0; }
  .license-strip > a { justify-self: start; }
  .creator { grid-template-columns: auto 1fr; }
  .creator-action { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav { min-height: 70px; padding: 0 18px; }
  .brand img { width: 42px; height: 42px; }
  .nav nav a:not(:first-child) { display: none; }
  main { width: min(100% - 28px, var(--max)); }
  .hero { min-height: 0; padding: 48px 0 34px; }
  .hero h1 { font-size: clamp(44px, 12vw, 66px); }
  .hero h1 span { white-space: normal; }
  .license-items { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .license-items div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 58px 0 84px; }
  .section-head { align-items: start; flex-direction: column; }
  .search { width: 100%; }
}

@media (max-width: 570px) {
  .brand strong { font-size: 13px; }
  .brand small { font-size: 6px; }
  .nav nav { gap: 0; }
  .hero h1 { font-size: 48px; }
  .lede { font-size: 14px; }
  .hero-actions { display: grid; }
  .hero-actions a, .hero-actions button { width: 100%; }
  .hero-command small { display: none; }
  .hero-visual { border-radius: 11px; }
  .hero-visual-label { top: 8px; left: 8px; }
  .hero-visual-state { top: 8px; right: 8px; }
  .license-strip { padding: 22px 20px; }
  .license-items { grid-template-columns: 1fr; }
  .license-items div { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .section h2, .creator h2 { font-size: 34px; }
  .creator { grid-template-columns: 1fr; padding: 26px 22px; }
  .creator > img { width: 104px; height: 104px; }
  .creator-action { grid-column: auto; }
  .creator-action small { text-align: left; }
  footer { flex-direction: column; padding: 24px 18px; }
}

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