:root {
  --page: #eef1f4;
  --paper: rgba(255, 255, 255, 0.7);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --ink: #171a1f;
  --muted: #68707a;
  --line: rgba(116, 126, 139, 0.2);
  --line-strong: rgba(101, 111, 123, 0.3);
  --shadow: 0 24px 70px rgba(52, 62, 74, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --radius: 26px;
  --radius-small: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px),
    linear-gradient(145deg, #f7f8fa 0%, #e9edf1 50%, #f6f7f8 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
a { color: inherit; }

.ambient {
  position: fixed;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
  opacity: .75;
}

.ambient-one {
  top: -18vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(255,255,255,.98), rgba(190,199,210,.18) 58%, transparent 70%);
}

.ambient-two {
  right: -15vw;
  top: 28vh;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(176,188,202,.16) 60%, transparent 72%);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(240,243,247,.55));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 10px;
  border-radius: 24px;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.header-primary {
  min-height: 54px;
  padding: 0 4px 0 6px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(145deg, #505863, #111419);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 9px 18px rgba(28,33,40,.22), inset 0 1px 1px rgba(255,255,255,.38);
}

.brand-avatar { position: relative; overflow: hidden; }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-avatar > span { display: none; }
.brand-avatar.is-fallback img { display: none; }
.brand-avatar.is-fallback > span { display: grid; width: 100%; height: 100%; place-items: center; }

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: .14em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
}

.catalog-tabs {
  padding: 4px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(118,128,140,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}

.catalog-tab {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #65707c;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-tab svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fire-emoji { font-size: 16px; line-height: 1; }

.catalog-tab:hover { color: #242a31; }
.catalog-tab.is-active {
  color: #fff;
  background: linear-gradient(145deg, #424952, #171b20);
  box-shadow: 0 8px 18px rgba(29,34,41,.18), inset 0 1px 0 rgba(255,255,255,.24);
}

.header-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(180px, .7fr) minmax(180px, .7fr);
  gap: 8px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(112,122,134,.12);
}

.contact-link, .buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
  background: linear-gradient(145deg, #3c424b, #171a1f);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 12px 26px rgba(24, 29, 36, .2), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header .contact-link { min-height: 44px; border-radius: 13px; }

.contact-link svg, .buy-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link:hover, .buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(24, 29, 36, .27), inset 0 1px 0 rgba(255,255,255,.3);
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  min-height: 430px;
  padding: 76px 1.5vw 68px;
  position: relative;
}

.intro::after {
  content: "";
  position: absolute;
  top: 72px;
  right: 5%;
  width: min(28vw, 340px);
  aspect-ratio: 1;
  border-radius: 42% 58% 55% 45%;
  border: 1px solid rgba(255,255,255,.72);
  background: conic-gradient(from 220deg, rgba(255,255,255,.9), rgba(174,184,196,.35), rgba(255,255,255,.76), rgba(195,203,212,.3), rgba(255,255,255,.9));
  box-shadow: 0 35px 90px rgba(79,89,101,.16), inset 12px 10px 25px rgba(255,255,255,.78), inset -14px -12px 28px rgba(90,100,112,.1);
  filter: saturate(.55);
  transform: rotate(-9deg);
  z-index: -1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #59616b;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b8490;
  box-shadow: 0 0 0 5px rgba(122,132,144,.12);
}

.intro h1 {
  margin: 22px 0 20px;
  max-width: 690px;
  font-size: clamp(48px, 7.2vw, 94px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 620;
}

.intro h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, #1e2228 10%, #8c949e 54%, #252a31 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

.intro > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.catalog-stat {
  position: absolute;
  right: 1.5vw;
  bottom: 58px;
  min-width: 144px;
  padding: 20px 24px;
  border-radius: 24px;
  text-align: right;
}

.catalog-stat span { display: block; font-size: 34px; font-weight: 670; letter-spacing: -.04em; }
.catalog-stat small { color: var(--muted); font-size: 12px; }

.catalog { padding: 28px 0 78px; }

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

.section-kicker { color: #7a838e; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.catalog-heading h2 { margin: 6px 0 0; font-size: 31px; letter-spacing: -.035em; }
#catalog-title { scroll-margin-top: 175px; }
.catalog-heading p { margin: 0 0 5px; color: var(--muted); font-size: 14px; }

.search-control, .select-control {
  min-height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(142,151,162,.16);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-control:focus-within, .select-control:focus-within {
  border-color: rgba(62,70,80,.36);
  box-shadow: 0 0 0 4px rgba(92,102,114,.08);
}

.search-control svg, .select-control svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #69727d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-control svg { margin-left: 17px; }
.search-control input, .select-control select {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-control input::placeholder { color: #9098a2; }
.select-control { position: relative; }
.select-control select { appearance: none; padding: 0 42px 0 10px; cursor: pointer; }
.select-control svg { position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.filter-label {
  flex: 0 0 auto;
  margin-left: 15px;
  padding-right: 10px;
  border-right: 1px solid rgba(112,122,134,.16);
  color: #8a939d;
  font-size: 12px;
  font-weight: 650;
}

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

.site-card {
  min-height: 330px;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.88);
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(231,235,240,.55));
  box-shadow: 0 18px 44px rgba(51,61,72,.09), inset 0 1px 0 rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.site-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255,255,255,.4), transparent 31%, transparent 70%, rgba(255,255,255,.32));
  pointer-events: none;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,1);
  box-shadow: 0 25px 54px rgba(51,61,72,.14), inset 0 1px 0 #fff;
}

.hot-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #71391f;
  background: linear-gradient(145deg, rgba(255,244,224,.96), rgba(242,214,177,.72));
  border: 1px solid rgba(178,113,63,.16);
  box-shadow: 0 7px 16px rgba(115,73,40,.09), inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
}

.hot-badge + .card-top { padding-right: 60px; }

.card-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.logo-shell {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(130,140,152,.14);
  box-shadow: 0 9px 22px rgba(62,71,82,.09), inset 0 1px 0 #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-shell img { width: 30px; height: 30px; object-fit: contain; }
.logo-shell .logo-letter { display: none; font-weight: 750; color: #4e5661; }
.logo-shell.is-fallback img { display: none; }
.logo-shell.is-fallback .logo-letter { display: block; }

.site-name { min-width: 0; }
.site-name h3 { margin: 0; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-domain {
  display: inline-flex;
  max-width: 100%;
  margin-top: 5px;
  color: #7c8590;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-domain:hover { color: #20242a; text-decoration: underline; }

.site-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 13px; position: relative; z-index: 1; }
.tag {
  padding: 6px 9px;
  border-radius: 999px;
  color: #59616c;
  background: rgba(255,255,255,.67);
  border: 1px solid rgba(122,132,144,.13);
  font-size: 11px;
  line-height: 1;
}
.import-support {
  min-height: 25px;
  max-width: 100%;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f7b56;
  background: rgba(229,249,237,.84);
  border: 1px solid rgba(76,156,114,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.import-support i {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #4c9c72;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.site-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; position: relative; z-index: 1; }
.site-facts > div { min-width: 0; padding: 11px; border-radius: 13px; background: rgba(255,255,255,.53); border: 1px solid rgba(126,136,148,.11); }
.site-facts small { display: block; margin-bottom: 5px; color: #858d97; font-size: 10px; }
.site-facts strong { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.verified-value i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4f9b72; box-shadow: 0 0 0 3px rgba(79,155,114,.1); }
.audience-row, .verified-row { min-height: 31px; padding: 0 3px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(112,122,134,.1); }
.audience-row { margin-top: 10px; }
.audience-row span, .verified-row span { color: #8a929c; font-size: 10px; }
.audience-row strong, .verified-row strong { max-width: 65%; color: #5d6670; font-size: 10px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.buy-button { min-height: 46px; margin-top: auto; border-radius: 15px; position: relative; z-index: 1; }

.skeleton-card {
  min-height: 330px;
  background: linear-gradient(110deg, rgba(255,255,255,.47) 8%, rgba(255,255,255,.87) 18%, rgba(255,255,255,.47) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.25s linear infinite;
}

@keyframes shimmer { to { background-position-x: -200%; } }

.empty-state { padding: 54px 20px; border-radius: var(--radius); text-align: center; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 18px; display: grid; place-items: center; background: #fff; font-size: 26px; color: #747d87; box-shadow: 0 12px 26px rgba(60,70,82,.11); }
.empty-state h3 { margin: 0 0 8px; font-size: 19px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.secondary-button {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  cursor: pointer;
}
.secondary-button:hover { background: #fff; }

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: #7c858f;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .05em;
}

.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; }

@media (max-width: 1040px) {
  .site-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro::after { right: -4%; }
  .header-primary { grid-template-columns: minmax(220px, 1fr) auto auto; }
  .catalog-tab { padding: 0 12px; }
}

@media (max-width: 760px) {
  .site-header, .page-shell, footer { width: min(100% - 24px, 1180px); }
  .site-header { margin-top: 12px; top: auto; border-radius: 20px; position: relative; }
  .header-primary { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .catalog-tabs { grid-column: 1 / -1; width: 100%; }
  .catalog-tab { flex: 1; }
  .header-filters { grid-template-columns: 1fr 1fr; }
  .header-filters .search-control { grid-column: 1 / -1; }
  .brand-mark { width: 42px; height: 42px; }
  .brand small { display: none; }
  .contact-link { min-height: 44px; padding: 0 14px; }
  .intro { min-height: 400px; padding: 70px 5px 46px; }
  .intro::after { width: 210px; top: 135px; right: -70px; opacity: .7; }
  .intro h1 { max-width: 540px; font-size: clamp(46px, 14vw, 72px); }
  .intro > p { max-width: 86%; font-size: 15px; }
  .catalog-stat { position: static; width: fit-content; min-width: 124px; margin-top: 27px; padding: 14px 18px; text-align: left; }
  .catalog-stat span { font-size: 26px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #catalog-title { scroll-margin-top: 18px; }
}

@media (max-width: 530px) {
  .brand strong { font-size: 12px; }
  .contact-link { font-size: 13px; }
  .contact-link svg { display: none; }
  .intro h1 { letter-spacing: -.055em; }
  .catalog-heading h2 { font-size: 27px; }
  .header-filters { grid-template-columns: 1fr; }
  .header-filters .search-control { grid-column: auto; }
  .site-grid { grid-template-columns: 1fr; gap: 13px; }
  .site-card { min-height: 330px; }
  footer { flex-direction: column; gap: 7px; }
}

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