/* Real demo gallery. Screenshots are linked static assets, not embedded pages. */
.demo-section {
  padding-bottom: 100px;
}

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

.demo-heading h2 { font-size: 52px; }
.demo-heading p { color: #76767d; font-size: 14px; line-height: 1.9; padding-bottom: 5px; }

.demo-collections { position: relative; }
.demo-category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: sticky;
  top: 72px;
  z-index: 20;
  margin-bottom: 38px;
  border-bottom: 1px solid #dcdce0;
  background: #f7f7f7f5;
  backdrop-filter: blur(14px);
}
.demo-category-nav a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 16px 12px;
  color: #81818a;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: color .2s, background .2s;
}
.demo-category-nav a::after { content: ''; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.demo-category-nav a:hover { color: #171719; background: #f1f1f5; }
.demo-category-nav a[aria-selected="true"] { color: #171719; }
.demo-category-nav a[aria-selected="true"]::after { transform: scaleX(1); }
.category-count { display: grid; place-items: center; width: 26px; height: 23px; flex: 0 0 auto; border-radius: 5px; background: #ececf0; color: #898993; font-size: 10px; font-weight: 500; }
[aria-selected="true"] .category-count { background: #ffebe5; color: #d94322; }
.demo-group { scroll-margin-top: 95px; }
.demo-group + .demo-group { margin-top: 60px; }
.demo-collections.has-tabs .demo-group { margin-top: 0; }
.demo-group[hidden] { display: none; }
.demo-group:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.gallery-heading h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 600; }
.gallery-heading h3 span { font-size: 10px; color: var(--accent); font-weight: 500; }
.gallery-heading p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: #64646d; }
.gallery-heading > span { color: #6c6c75; font-size: 12px; }
.demo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.demo-card { min-width: 0; }

.demo-window {
  display: block;
  overflow: hidden;
  border: 1px solid #dcdce0;
  border-radius: 9px;
  background: #e9e9ec;
  box-shadow: 0 8px 24px #00000005;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}

.demo-window:hover { transform: translateY(-5px); box-shadow: 0 17px 40px #15151913; border-color: #b5b5bc; }
.window-toolbar { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 11px 14px; background: #ededf0; color: #8d8d96; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c3c3cb; }
.window-address { font-size: 12px; letter-spacing: .3px; position: absolute; left: 50%; transform: translateX(-50%); color: #666671; }
.window-toolbar > .icon { height: 11px; width: 11px; }
.window-screen { display: block; position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #19191c; }
.window-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.demo-window:hover img { transform: scale(1.025); }
.preview-enter { position: absolute; bottom: 15px; right: 15px; display: flex; gap: 13px; align-items: center; background: #171719e8; backdrop-filter: blur(8px); color: white; border: 1px solid #ffffff26; border-radius: 4px; padding: 10px 13px; font-size: 10px; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .35s var(--ease); }
.preview-enter .icon { width: 13px; height: 13px; color: #ff7050; }
.demo-window:hover .preview-enter, .demo-window:focus-visible .preview-enter { opacity: 1; transform: translateY(0); }
.demo-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 0 18px; }
.demo-card-info { min-width: 0; }
.demo-domain { margin-top: 8px; font-size: 14px; color: #686873; line-height: 1.5; }
.demo-card-heading h4 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.7px; }
.demo-card-heading h4 a:hover { color: var(--accent); }
.demo-card-heading > span { font-size: 8px; color: #939399; letter-spacing: 1.2px; }
.demo-open-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 15px; border: 1px solid #d2d2d8; border-radius: 5px; font-size: 15px; color: #323238; white-space: nowrap; }
.demo-open-link .icon { width: 15px; height: 15px; }
.demo-open-link:hover { color: var(--accent); }


.gallery-footer { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.gallery-footer p { font-size: 13px; color: #696975; line-height: 1.75; }
.gallery-footer a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.gallery-footer a .icon { width: 15px; height: 15px; }
.js-motion .demo-card:nth-child(2n) { transition-delay: .1s; }

@media (max-width: 1050px) {
  .demo-heading { gap: 35px; }
  .demo-heading h2 { font-size: 44px; }
  .demo-heading p { font-size: 12px; }
  .demo-gallery { column-gap: 24px; }
}

@media (max-width: 760px) {
  .demo-category-nav a { gap: 8px; font-size: 13px; padding-inline: 7px; }
  .demo-heading { display: block; margin-bottom: 37px; }
  .demo-heading h2 { font-size: 40px; }
  .demo-heading p { margin-top: 22px; font-size: 13px; }
  .demo-gallery { column-gap: 20px; row-gap: 35px; }
  .demo-card-heading h4 { font-size: 20px; }
  .demo-card-heading > span { font-size: 7px; letter-spacing: .7px; }
  .preview-enter { opacity: 1; transform: none; bottom: 10px; right: 10px; padding: 8px 10px; font-size: 9px; }
}

@media (max-width: 650px) {
  .demo-category-nav { top: 67px; }
}

@media (max-width: 600px) {
  .demo-category-nav { margin-bottom: 27px; }
  .demo-category-nav a { flex-direction: column; gap: 7px; min-height: 81px; padding: 13px 5px; font-size: 12px; line-height: 1.5; }
  .category-label { display: flex; align-items: center; justify-content: center; min-height: 36px; max-width: 94px; word-break: keep-all; }
  .category-count { width: 23px; height: 20px; font-size: 9px; }
  .demo-section { padding-bottom: 67px; }
  .demo-heading h2 { font-size: 38px; }
  .demo-heading p { font-size: 12px; }
  .gallery-heading { margin-bottom: 21px; padding-bottom: 16px; gap: 14px; }
  .gallery-heading h3 { font-size: 13px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .gallery-heading > span { font-size: 9px; }
  .gallery-heading p { font-size: 11px; margin-top: 6px; }
  .demo-gallery { grid-template-columns: 1fr; gap: 35px; }
  .demo-window { border-radius: 6px; }
  .window-toolbar { padding: 10px 12px; }
  .window-address { font-size: 8px; }
  .window-dots i { width: 4px; height: 4px; }
  .demo-card-heading { padding: 17px 0 14px; }
  .demo-card-heading h4 { font-size: 23px; }
  .demo-card-heading > span { font-size: 8px; letter-spacing: .8px; }
  .gallery-footer { display: block; margin-top: 23px; }
  .gallery-footer p { font-size: 9px; }
  .gallery-footer a { margin-top: 17px; font-size: 10px; }
  .js-motion .demo-card:nth-child(2n) { transition-delay: 0s; }
}

@media (max-width: 350px) {
  .demo-category-nav a { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-window:hover, .demo-window:hover img { transform: none; }
}
