:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #0d1118;
  --panel-2: #111722;
  --ink: #f4f7fb;
  --muted: #98a2b3;
  --muted-2: #c7d0dd;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #d8c38a;
  --accent-ink: #201806;
  --blue: #aeb8c8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 195, 138, 0.13), transparent 360px),
    radial-gradient(circle at 80% 0%, rgba(174, 184, 200, 0.1), transparent 430px),
    linear-gradient(180deg, #0a0d14 0%, var(--bg) 54%, #05070a 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 17, 24, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent-ink);
  background: linear-gradient(135deg, #ead7a1, var(--accent));
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand strong,
.brand small { display: block; line-height: 1.05; }

.brand strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

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

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.top-cta,
.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--accent-ink);
  border-color: transparent;
  background: linear-gradient(135deg, #ead7a1, var(--accent));
}

.button.secondary { color: var(--muted-2); }

main { padding-top: 52px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: stretch;
}

.hero-copy,
.spotlight-card,
.market-strip,
.filter-panel,
.agent-card,
.collection-grid article,
.publish-card {
  border: 1px solid var(--line);
  background: rgba(13, 17, 24, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-copy {
  padding: 34px;
  border-radius: 28px;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
}

.kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(216, 195, 138, 0.1), transparent 46%),
    rgba(13, 17, 24, 0.88);
}

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.spotlight-head p,
.spotlight-head span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spotlight-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}

.monogram,
.agent-monogram {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(216, 195, 138, 0.32);
  border-radius: 17px;
  color: var(--accent);
  background: rgba(216, 195, 138, 0.08);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.spotlight-body h2 {
  margin-bottom: 8px;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.spotlight-body p {
  margin-bottom: 0;
  color: var(--muted-2);
  line-height: 1.5;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: auto 0 18px;
  padding-top: 28px;
}

.spotlight-stats div,
.agent-facts div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.spotlight-stats dt,
.agent-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.spotlight-stats dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.checks,
.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checks span,
.pill,
.agent-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 750;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 24px;
}

.market-strip article {
  padding: 18px;
}

.market-strip article + article { border-left: 1px solid var(--line); }

.market-strip strong,
.market-strip span { display: block; }

.market-strip strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.market-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.catalog-section,
.collections { padding-top: 72px; }

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

.section-heading.compact {
  display: block;
  max-width: 680px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.search {
  display: grid;
  gap: 8px;
}

.search span,
.filter-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 16px;
}

.search input::placeholder { color: #697386; }

.search input:focus {
  border-color: rgba(216, 195, 138, 0.68);
  box-shadow: 0 0 0 4px rgba(216, 195, 138, 0.1);
}

.results-note {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.results-note strong {
  font-size: 17px;
  letter-spacing: -0.035em;
}

.results-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 18px;
  padding: 15px;
  border-radius: 20px;
}

.filter-title { margin: 0 0 10px; }

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-button {
  width: 100%;
  justify-content: space-between;
  min-height: 40px;
  border-radius: 13px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.04);
}

.filter-button.is-active {
  color: var(--accent-ink);
  border-color: transparent;
  background: linear-gradient(135deg, #ead7a1, var(--accent));
}

.filter-button small {
  opacity: 0.7;
  font-weight: 850;
}

.filter-callout {
  margin-top: 16px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(216, 195, 138, 0.06);
}

.filter-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.filter-callout p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.agent-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 18px;
  border-radius: 22px;
}

.agent-card:hover { border-color: rgba(216, 195, 138, 0.34); }

.agent-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.agent-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.agent-monogram {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(216, 195, 138, 0.22);
  border-radius: 999px;
  color: #ead7a1;
  background: rgba(216, 195, 138, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.agent-card p {
  color: var(--muted-2);
  line-height: 1.55;
}

.agent-desc { margin-bottom: 16px; }

.agent-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.agent-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.agent-meta { margin-top: 14px; }

.agent-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.agent-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.agent-action a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.empty {
  margin: 16px 0 0;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

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

.collection-grid article {
  padding: 22px;
  border-radius: 22px;
}

.collection-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.collection-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.publish-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 72px;
  padding: 28px;
  border-color: rgba(216, 195, 138, 0.24);
  border-radius: 26px;
}

.publish-card p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted-2);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .hero,
  .catalog-layout,
  .publish-card { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1120px); }
  main { padding-top: 34px; }
  .topbar { border-radius: 18px; }
  .top-cta { display: none; }
  .hero-copy { padding: 24px; }
  h1 { font-size: 42px; }
  .market-strip,
  .catalog-toolbar,
  .agent-grid,
  .collection-grid { grid-template-columns: 1fr; }
  .market-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .spotlight-stats,
  .agent-facts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav { display: none; }
  .brand { min-width: 0; }
  .filter-list,
  .spotlight-body { grid-template-columns: 1fr; }
}
