:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #0d0d10;
  --panel-2: #121216;
  --text: #f5f5f6;
  --muted: rgba(255, 255, 255, 0.48);
  --faint: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --pink: #fc016e;
  --pink-soft: #f472b6;
  --green: #4ade80;
  --radius: 16px;
  --nav-height: 58px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(252, 1, 110, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: #08080a;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loading-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 0 50px rgba(252, 1, 110, 0.16);
}

.loading-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.loading-bar {
  width: 150px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.loading-bar span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--pink);
  animation: loading-slide 1s ease-in-out infinite alternate;
}

@keyframes loading-slide {
  to { transform: translateX(120%); }
}

.glass-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1500;
  display: flex;
  width: min(760px, calc(100% - 28px));
  min-height: var(--nav-height);
  align-items: center;
  gap: 4px;
  padding: 5px 7px 5px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 40px;
  background: rgba(12, 12, 15, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px) saturate(140%);
  animation: nav-in 0.55s cubic-bezier(0.2, 0.8, 0.4, 1) both;
}

@keyframes nav-in {
  from { opacity: 0; filter: blur(7px); transform: translateX(-50%) translateY(-70px); }
}

.nav-logo {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  padding: 5px 12px 5px 0;
  border-right: 1px solid var(--faint);
  text-decoration: none;
}

.nav-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-logo span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link,
.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.search-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.search-trigger {
  margin-left: auto;
  border-left: 1px solid var(--faint);
}

.keycap {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.34);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.page-shell {
  min-height: 100vh;
  padding-top: 94px;
}

.hero {
  position: relative;
  width: min(1368px, calc(100% - 32px));
  min-height: 340px;
  margin: 0 auto 48px;
  overflow: hidden;
  border: 1px solid var(--faint);
  border-radius: 20px;
  background:
    radial-gradient(circle at 22% 15%, rgba(252, 1, 110, 0.18), transparent 20rem),
    linear-gradient(135deg, #111116, #09090b 62%);
}

.hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 340px;
  align-content: center;
  padding: clamp(28px, 6vw, 74px);
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--pink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 16px var(--pink);
  content: "";
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  font-weight: 350;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 strong {
  font-weight: 800;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stat-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.stat-pill strong {
  color: white;
}

.orb {
  position: absolute;
  right: clamp(-120px, 3vw, 40px);
  bottom: -150px;
  z-index: 1;
  width: clamp(300px, 42vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.15), transparent 17%),
    conic-gradient(from 210deg, #fc016e, #311048, #09090b, #fc016e);
  opacity: 0.55;
  filter: saturate(120%);
  animation: orb-spin 18s linear infinite;
}

@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.content-wrap {
  width: min(1368px, calc(100% - 32px));
  margin: 0 auto;
}

.library-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 80px;
}

.category-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--faint);
  border-radius: 14px;
  background: rgba(12, 12, 15, 0.72);
  scrollbar-width: thin;
}

.sidebar-label {
  margin: 7px 8px 12px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.category-button:hover,
.category-button.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.category-button span:last-child {
  color: rgba(255, 255, 255, 0.25);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.catalog-main {
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
}

.inline-search {
  width: min(320px, 100%);
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--faint);
  border-radius: 10px;
  background: var(--panel);
  color: white;
}

.inline-search::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.catalog-grid,
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trending {
  margin-bottom: 38px;
}

.trending .section-kicker {
  margin: 0 0 12px;
  color: var(--pink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.catalog-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #0d0d10;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.4, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.catalog-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(252, 1, 110, 0.07), transparent),
    #070709;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.08) 48%, transparent 61%);
  background-size: 220% 100%;
  animation: media-loading 1.4s ease-in-out infinite;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.card-media.is-ready::after,
.card-media.has-poster::after,
.card-media.has-error::after {
  opacity: 0;
  visibility: hidden;
}

/* Keep the poster (CSS background) visible until the video has a decoded frame. */
.card-media.has-poster:not(.is-ready) video {
  opacity: 0;
}

@keyframes media-loading {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.catalog-card:hover .card-media img,
.catalog-card:hover .card-media video {
  transform: scale(1.025);
}

.card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 26px;
}

.new-badge,
.premium-badge {
  position: absolute;
  top: 9px;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.new-badge {
  left: 9px;
  color: var(--green);
}

.premium-badge {
  right: 9px;
  color: #fbbf24;
}

.card-action {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.78);
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.card-action:hover {
  transform: scale(1.08);
  background: white;
  color: black;
}

.card-body {
  min-height: 86px;
  padding: 14px;
}

.card-title {
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
}

.live-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 9px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}

.page-button {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 11px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.page-button:hover,
.page-button.is-active {
  border-color: rgba(252, 1, 110, 0.5);
  background: rgba(252, 1, 110, 0.1);
  color: var(--pink-soft);
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
  animation: fade-in 0.2s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.detail-modal {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0b0e;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.86);
  animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.4, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.82);
  color: var(--muted);
  cursor: pointer;
}

.modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050506;
}

.modal-media img,
.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-copy {
  padding: 24px;
}

.modal-copy h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.05em;
}

.modal-copy > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--pink);
  background: var(--pink);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.how-to {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--faint);
}

.how-step {
  padding: 13px;
  border: 1px solid var(--faint);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.how-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pink-soft);
  font-size: 10px;
}

.how-step span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.search-modal {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 12, 15, 0.98);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.search-modal input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--faint);
  background: transparent;
  color: white;
  font-size: 16px;
  outline: 0;
}

.search-results {
  max-height: min(540px, 65vh);
  overflow: auto;
  padding: 8px;
}

.search-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
  cursor: pointer;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-item small {
  color: rgba(255, 255, 255, 0.3);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2800;
  padding: 11px 15px;
  transform: translateY(20px);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 10px;
  background: rgba(11, 20, 14, 0.94);
  color: #86efac;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.landing-hero {
  min-height: 100svh;
  padding-top: 120px;
}

.landing-hero .hero {
  min-height: calc(100svh - 152px);
}

.landing-hero .hero-content {
  min-height: calc(100svh - 152px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.landing-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.feature-card,
.price-card,
.faq-item {
  border: 1px solid var(--faint);
  border-radius: 14px;
  background: var(--panel);
}

.feature-card,
.price-card {
  padding: 24px;
}

.feature-card span {
  color: var(--pink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.feature-card h3,
.price-card h3 {
  margin: 16px 0 9px;
  font-size: 18px;
}

.feature-card p,
.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.price-card.is-featured {
  border-color: rgba(252, 1, 110, 0.45);
  box-shadow: 0 20px 70px rgba(252, 1, 110, 0.08);
}

.price {
  margin: 20px 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.price small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.faq-item button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 18px;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
  cursor: pointer;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-item.is-open p {
  display: block;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--faint);
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

@media (max-width: 1160px) {
  .catalog-grid,
  .trending-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .glass-nav {
    width: calc(100% - 20px);
  }

  .nav-logo span,
  .keycap,
  .nav-link:first-child {
    display: none;
  }

  .nav-link,
  .search-trigger {
    padding: 0 11px;
  }

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

  .category-sidebar {
    position: static;
    display: flex;
    max-height: none;
    gap: 5px;
    overflow-x: auto;
    padding: 8px;
  }

  .sidebar-label {
    display: none;
  }

  .category-button {
    width: auto;
    min-width: max-content;
  }

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

  .how-to,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .glass-nav {
    top: 8px;
  }

  .nav-logo {
    padding-right: 7px;
  }

  .nav-link,
  .search-trigger {
    min-width: 38px;
    padding: 0 9px;
    font-size: 11px;
  }

  .search-trigger span:first-child {
    display: none;
  }

  .page-shell {
    padding-top: 78px;
  }

  .hero,
  .content-wrap,
  .landing-section {
    width: calc(100% - 20px);
  }

  .hero,
  .hero-content {
    min-height: 390px;
  }

  .hero-content {
    padding: 28px 20px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .orb {
    right: -160px;
    opacity: 0.34;
  }

  .section-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search {
    width: 100%;
  }

  .catalog-grid,
  .trending-grid,
  .how-to,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
  }

  .card-media {
    height: 100%;
    min-height: 148px;
  }

  .card-body {
    min-width: 0;
    align-self: center;
  }

  .overlay {
    align-items: flex-end;
    padding: 8px;
  }

  .detail-modal {
    max-height: calc(100vh - 16px);
    border-radius: 18px 18px 12px 12px;
  }

  .modal-copy {
    padding: 20px 16px;
  }
}

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

/* Original Code Eagle library UI */
@font-face {
  font-family: "Inter Local";
  src: url("/archive/ui/0004-inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --panel: #111;
  --panel-2: #0d0d0d;
  font-family: "Inter Local", Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html,
body {
  background: #0a0a0a;
}

body {
  background-image: none;
  color: #f9fafb;
  font-family: "Inter Local", Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.24); }

.noise {
  opacity: 0;
}

.page-shell {
  padding-top: 0;
}

.glass-nav {
  top: 16px;
  width: max-content;
  min-height: 0;
  height: 53.5px;
  gap: 4px;
  padding: 5px 6px 5px 14px;
  border: 0;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  backdrop-filter: blur(20px);
}

.glass-nav::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.12));
  content: "";
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.nav-logo,
.gnav-logo {
  display: flex;
  width: 115.83px;
  min-width: 115.83px;
  height: 40px;
  gap: 7px;
  align-items: center;
  margin: 0 4px 0 0;
  padding: 6px 10px 6px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo img,
.gnav-logo img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-logo span,
.gnav-logo span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links,
.menu-wrapper {
  position: relative;
  display: flex;
  height: 43.5px;
  gap: 0;
  align-items: flex-start;
  padding: 4px;
}

.menu-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 35.5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1000px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-highlight.for-components {
  width: 121.95px;
  transform: translate(4px, 4px);
}

.menu-highlight.for-pages {
  width: 84.58px;
  transform: translate(125.95px, 4px);
}

.nav-link,
.search-trigger,
.account-indicator,
.menu-item {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  height: 35.5px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.is-active,
.search-trigger:hover,
.account-indicator:hover {
  background: transparent;
  color: #fff;
}

.search-trigger {
  width: 143.7px;
  margin: 0 0 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.search-trigger svg,
.account-indicator svg {
  width: 13px;
  height: 13px;
}

.keycap {
  padding: 1px 5px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
}

.account-indicator {
  width: 69px;
  height: 29px;
  margin: 3.25px 0 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
}

.library-banner {
  width: 100%;
  max-width: 1400px;
  height: 420px;
  margin: 0 auto;
  padding: 80px 20px 0 16px;
}

.library-banner-frame {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.cb-wrapper,
.cb-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cb-content {
  animation: 200s linear infinite cb-brightness;
}

.cb-full {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: scale(1);
  animation: 200s linear infinite cb-zoom;
}

.cb-bgimg,
.cb-boyimg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-boyimg {
  z-index: 2;
  animation: 200s linear infinite cb-blur;
}

.cb-hue {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #1e5799 0, #7db9e8 100%);
  opacity: 1;
  mix-blend-mode: overlay;
  animation: 8s infinite cb-hue;
}

.cb-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-cube {
  position: relative;
  width: 870px;
  height: 190px;
  perspective: 480px;
  perspective-origin: 51% 70%;
  transform-style: preserve-3d;
}

.cb-face {
  position: absolute;
  display: flex;
  width: 870px;
  height: 190px;
  align-items: center;
  overflow: hidden;
  border: 0;
  background: none;
  opacity: 0.85;
}

.cb-face.cb-top,
.cb-face.cb-bottom {
  width: 870px;
  height: 870px;
}

.cb-face.cb-front { display: none; transform: translateZ(435px); }
.cb-face.cb-back { transform: translateZ(-435px) rotateY(180deg) scaleX(-1); }
.cb-face.cb-left { transform: translateX(-435px) rotateY(-90deg) scaleX(-1); }
.cb-face.cb-right { transform: translateX(435px) rotateY(90deg) scaleX(-1); }
.cb-face.cb-top { transform: translateY(-435px) rotateX(90deg) scaleY(-1); }
.cb-face.cb-bottom { transform: translateY(-245px) rotateX(-90deg) scaleY(-1); }

.cb-face p {
  margin: 0;
  padding-top: 20px;
  overflow: hidden;
  color: #fff;
  font-family: "Inter Local", Inter, sans-serif;
  font-size: calc(6em + 13.3px);
  font-weight: 400;
  white-space: nowrap;
}

.cb-face.cb-left .cb-scroll,
.cb-face.cb-back .cb-scroll,
.cb-face.cb-right .cb-scroll {
  display: inline-block;
  will-change: transform;
}

.cb-face.cb-left .cb-scroll { animation: 200s linear infinite cb-left; }
.cb-face.cb-back .cb-scroll { animation: 200s linear infinite cb-back; }
.cb-face.cb-right .cb-scroll { animation: 200s linear infinite cb-right; }

.cb-reflect {
  position: absolute;
  display: flex;
  margin-top: 380px;
  align-items: center;
  justify-content: center;
  filter: blur(10px);
}

.cb-reflect .cb-cube { perspective-origin: 51% -30%; }
.cb-reflect .cb-face.cb-back { transform: translateZ(-435px) rotateY(180deg) scaleX(-1) scaleY(-1); }
.cb-reflect .cb-face.cb-left { transform: translateX(-435px) rotateY(-90deg) scaleX(-1) scaleY(-1); }
.cb-reflect .cb-face.cb-right { transform: translateX(435px) rotateY(90deg) scaleX(-1) scaleY(-1); }
.cb-reflect p { transform: scaleY(70%); }

@keyframes cb-left { from { transform: translateX(480px); } to { transform: translateX(-54000px); } }
@keyframes cb-back { from { transform: translateX(-390px); } to { transform: translateX(-54870px); } }
@keyframes cb-right { from { transform: translateX(-1260px); } to { transform: translateX(-55740px); } }
@keyframes cb-zoom { from { transform: scale(1); } to { transform: scale(1.15); } }
@keyframes cb-blur { from { filter: blur(0); } to { filter: blur(3px); } }
@keyframes cb-brightness { from { filter: brightness(1) contrast(1); } to { filter: brightness(0.8) contrast(1.3); } }
@keyframes cb-hue { 0%, 100% { filter: hue-rotate(0); } 50% { filter: hue-rotate(100deg); } }

.library-section-header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 52px 20px 0 16px;
}

.library-update {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.library-update i {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e91e8c;
}

.library-update span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.library-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.library-title-row h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.library-layout,
.main-layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  gap: 40px;
  align-items: flex-start;
  margin: 0 auto;
  padding: 36px 20px 80px 16px;
}

.category-sidebar,
.cat-sidebar {
  position: sticky;
  top: 72px;
  display: block;
  width: 220px;
  min-width: 220px;
  max-height: none;
  overflow: visible;
  align-self: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sidebar-label,
.cat-sidebar-label {
  width: 100%;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 18px;
  text-transform: uppercase;
}

.category-button,
.cat-sidebar-item {
  display: flex;
  width: 100%;
  height: 34px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0 5px 10px;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.category-button:hover,
.category-button.is-active,
.cat-sidebar-item:hover,
.cat-sidebar-item.active {
  background: transparent;
  color: #f9fafb;
}

.category-button.is-active,
.cat-sidebar-item.active {
  border-left-color: #fff;
}

.category-button span:last-child,
.cat-si-count {
  color: rgba(255, 255, 255, 0.2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.cat-si-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-main {
  min-width: 0;
  flex: 1;
}

.catalog-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-toolbar span:first-child {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-toolbar span:last-child {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 300;
}

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

.pages-page .catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.trending {
  margin-bottom: 40px;
}

.trending-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.trending-heading > span {
  background: linear-gradient(90deg, #fc016e, #ff85b8);
  background-clip: text;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trending-heading i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(252, 1, 110, 0.3), transparent);
}

.trending-heading small {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 300;
}

.catalog-card,
.ef-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.catalog-card:hover,
.ef-card:hover {
  z-index: 2;
  border-color: rgba(252, 1, 110, 0.42);
  box-shadow: none;
  transform: none;
}

.is-page-card {
  border-radius: 16px;
  background: #111;
}

.ef-card-inner {
  position: relative;
  width: calc(100% - 2px);
  margin: 1px;
  overflow: hidden;
  border-radius: 13px;
  background: #111;
}

.is-page-card .ef-card-inner {
  border-radius: 15px;
}

.card-media,
.ef-media {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #0d0d0d;
}

.card-media img,
.card-media video,
.ef-media img,
.ef-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card:hover .card-media img,
.catalog-card:hover .card-media video {
  transform: scale(1.015);
}

.new-badge,
.ef-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 16.5px;
  text-transform: none;
  backdrop-filter: blur(8px);
}

.ef-new-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fc016e;
}

.card-action,
.ef-action-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  z-index: 4;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  backdrop-filter: blur(8px);
}

.card-action:hover,
.ef-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: none;
}

.card-body,
.ef-body {
  min-height: 120px;
  padding: 14px 16px 16px;
}

.card-title,
.ef-title {
  overflow: hidden;
  margin: 0 0 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags,
.ef-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag,
.ef-tag {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 300;
  line-height: 16.5px;
}

.live-link {
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.ef-footer {
  min-height: 58.5px;
  padding: 12px 14px 14px;
}

.ef-footer-top {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.ef-footer-top > svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
}

.ef-footer .ef-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  font-size: 15px;
}

.ef-premium-pill {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
}

.ef-premium-pill svg {
  width: 9px;
  height: 9px;
}

.pagination {
  margin-top: 36px;
}

@media (min-width: 1500px) {
  .components-page .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .library-layout,
  .main-layout {
    gap: 24px;
  }

  .category-sidebar,
  .cat-sidebar {
    width: 180px;
    min-width: 180px;
  }

  .catalog-grid,
  .trending-grid,
  .pages-page .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .glass-nav {
    top: 8px;
    max-width: calc(100% - 16px);
  }

  .account-indicator {
    display: none;
  }

  .search-trigger {
    width: 46px;
    padding: 8px 12px;
  }

  .search-trigger > span {
    display: none;
  }

  .library-banner {
    height: 330px;
    padding: 72px 10px 0;
  }

  .library-banner-frame {
    height: 258px;
    border-radius: 14px;
  }

  .library-section-header {
    padding: 38px 16px 0;
  }

  .library-layout,
  .main-layout {
    display: block;
    padding: 30px 16px 64px;
  }

  .category-sidebar,
  .cat-sidebar {
    position: static;
    display: flex;
    width: 100%;
    max-height: none;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 26px;
    padding-bottom: 4px;
  }

  .sidebar-label,
  .cat-sidebar-label {
    display: none;
  }

  .category-button,
  .cat-sidebar-item {
    width: auto;
    min-width: max-content;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
  }

  .category-button.is-active,
  .cat-sidebar-item.active {
    border-color: rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 560px) {
  .nav-logo,
  .gnav-logo {
    width: 42px;
    min-width: 42px;
  }

  .nav-logo span,
  .gnav-logo span {
    display: none;
  }

  .menu-wrapper {
    width: 181px;
  }

  .nav-link,
  .menu-item {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }

  .menu-highlight.for-components {
    width: 104px;
  }

  .menu-highlight.for-pages {
    width: 73px;
    transform: translate(108px, 4px);
  }

  .catalog-grid,
  .trending-grid,
  .pages-page .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card,
  .ef-card {
    display: block;
    grid-template-columns: none;
  }

  .card-media,
  .ef-media {
    height: auto;
    min-height: 0;
  }
}
