/* Novira — Demo landing */

.ds-demo-page {
  --ds-demo-hero-from: #ef4056;
  --ds-demo-hero-to: #c62828;
  min-height: 100vh;
  background: var(--ds-bg-soft, #f0f0f1);
}

.ds-demo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ds-border);
}

.ds-demo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.ds-demo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ds-demo-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ds-brand);
}

.ds-demo-badge-template {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-text-muted);
  background: var(--ds-bg-soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ds-border);
}

.ds-demo-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-demo-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.ds-demo-nav a:hover {
  background: var(--ds-bg-soft);
  color: var(--ds-text);
}

.ds-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.ds-demo-btn--primary {
  background: var(--ds-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 64, 86, 0.35);
}

.ds-demo-btn--primary:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.ds-demo-btn--ghost {
  background: #fff;
  color: var(--ds-brand);
  border: 2px solid var(--ds-brand);
}

.ds-demo-btn--ghost:hover {
  background: #fff5f6;
}

.ds-demo-btn--white {
  background: #fff;
  color: var(--ds-brand);
}

.ds-demo-btn--white:hover {
  background: #f8f8f8;
}

/* Hero */
.ds-demo-hero {
  background: linear-gradient(135deg, var(--ds-demo-hero-from) 0%, var(--ds-demo-hero-to) 55%, #880e4f 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.ds-demo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.ds-demo-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .ds-demo-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.ds-demo-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.ds-demo-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
}

.ds-demo-hero-lead {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.92;
  margin: 0 0 24px;
  max-width: 520px;
}

.ds-demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.ds-demo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ds-demo-stat {
  text-align: center;
  min-width: 72px;
}

.ds-demo-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.ds-demo-stat span {
  font-size: 12px;
  opacity: 0.85;
}

.ds-demo-hero-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background: #1a1a1a;
  transition: transform 0.25s ease;
}

.ds-demo-hero-preview:hover {
  transform: scale(1.02);
}

.ds-demo-hero-preview img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.ds-demo-hero-preview-hint {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.8;
}

/* Sections */
.ds-demo-section {
  padding: 48px 0;
}

.ds-demo-section--alt {
  background: var(--ds-bg);
}

.ds-demo-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.ds-demo-section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ds-text);
  margin: 0 0 10px;
}

.ds-demo-section-head p {
  font-size: 14px;
  color: var(--ds-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Features */
.ds-demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ds-demo-feature {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ds-demo-section--alt .ds-demo-feature {
  background: var(--ds-bg-soft);
}

.ds-demo-feature:hover {
  border-color: #d0d0d2;
  box-shadow: var(--ds-shadow);
}

.ds-demo-feature-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.ds-demo-feature h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ds-text);
}

.ds-demo-feature p {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin: 0;
}

.ds-demo-feature p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  direction: ltr;
  unicode-bidi: isolate;
  background: var(--ds-bg-soft);
  border: 1px solid var(--ds-border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Tech stack */
.ds-demo-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ds-demo-tech span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 999px;
  color: var(--ds-text-secondary);
}

/* Gallery filters */
.ds-demo-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.ds-demo-filter {
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ds-border);
  background: var(--ds-bg);
  color: var(--ds-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.ds-demo-filter:hover {
  border-color: var(--ds-brand);
  color: var(--ds-brand);
}

.ds-demo-filter.is-active {
  background: var(--ds-brand);
  border-color: var(--ds-brand);
  color: #fff;
}

/* Page cards */
.ds-demo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ds-demo-card {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ds-demo-card:hover {
  box-shadow: var(--ds-shadow-lg);
  transform: translateY(-3px);
}

.ds-demo-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8e8;
  cursor: zoom-in;
  border: none;
  padding: 0;
  width: 100%;
  display: block;
  font-family: inherit;
}

.ds-demo-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.ds-demo-card:hover .ds-demo-card-thumb img {
  transform: scale(1.03);
}

.ds-demo-card-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.ds-demo-card-thumb:hover .ds-demo-card-zoom,
.ds-demo-card-thumb:focus-visible .ds-demo-card-zoom {
  opacity: 1;
}

.ds-demo-card-count {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}

.ds-demo-card-body {
  padding: 16px;
}

.ds-demo-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text);
  margin: 0 0 6px;
}

.ds-demo-card-desc {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-demo-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-demo-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-brand);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff5f6;
  transition: background 0.2s;
}

.ds-demo-card-link:hover {
  background: #ffe8eb;
}

.ds-demo-card-link--live {
  background: var(--ds-brand);
  color: #fff;
}

.ds-demo-card-link--live:hover {
  filter: brightness(0.92);
}

/* Purchase */
.ds-demo-purchase {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}

.ds-demo-purchase h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.ds-demo-purchase > p {
  font-size: 14px;
  opacity: 0.88;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 24px;
}

.ds-demo-purchase-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  text-align: right;
  margin-bottom: 28px;
  max-width: 720px;
  margin-inline: auto;
}

.ds-demo-purchase-list li {
  font-size: 13px;
  opacity: 0.9;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  list-style: none;
}

.ds-demo-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.ds-demo-footer {
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ds-text-muted);
  border-top: 1px solid var(--ds-border);
  background: var(--ds-bg);
}

.ds-demo-footer a {
  color: var(--ds-brand);
  font-weight: 600;
  text-decoration: none;
}

.ds-demo-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 10px;
}

.ds-demo-footer-links a:hover {
  text-decoration: underline;
}

/* Lightbox */
.ds-demo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.ds-demo-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.ds-demo-lightbox-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ds-demo-lightbox-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 2px 0 0;
}

.ds-demo-lightbox-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ds-demo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ds-demo-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}

.ds-demo-lightbox-img-wrap {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.ds-demo-lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.ds-demo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ds-demo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ds-demo-lightbox-nav--prev {
  right: 12px;
}

.ds-demo-lightbox-nav--next {
  left: 12px;
}

.ds-demo-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.ds-demo-lightbox-bottom {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.ds-demo-lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.ds-demo-lightbox-dot.is-active {
  background: var(--ds-brand);
  transform: scale(1.2);
}

.ds-demo-lightbox-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .ds-demo-header-inner {
    flex-wrap: wrap;
  }

  .ds-demo-nav {
    display: none;
  }

  .ds-demo-btn--hide-sm {
    display: none;
  }

  .ds-demo-lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

[x-cloak] {
  display: none !important;
}

/* ---------------------------------------------------------------------------
   Versions showcase — the two builds of this template side by side.
   --------------------------------------------------------------------------- */

.ds-demo-versions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .ds-demo-versions {
    grid-template-columns: 1fr 1fr;
  }
}

.ds-demo-version {
  display: flex;
  flex-direction: column;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ds-demo-version:hover {
  border-color: #d0d0d2;
  box-shadow: var(--ds-shadow-lg);
}

/* The Next.js card is the newer build, so it carries the brand accent. */
.ds-demo-version--next {
  border-color: rgba(239, 64, 86, 0.35);
  box-shadow: 0 4px 20px rgba(239, 64, 86, 0.08);
}

.ds-demo-version__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ds-demo-version__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.ds-demo-version__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ds-text);
  margin: 0;
}

.ds-demo-version__tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
  background: var(--ds-bg-soft);
  margin-inline-start: auto;
}

.ds-demo-version--next .ds-demo-version__tag {
  color: #fff;
  background: var(--ds-brand);
  border-color: var(--ds-brand);
}

.ds-demo-version__lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ds-text-muted);
  margin: 0 0 16px;
}

.ds-demo-version__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ds-demo-version__list li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ds-text-secondary);
}

.ds-demo-version__list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-weight: 700;
  color: var(--ds-green, #00a049);
}

/* Technology stack.
   A labelled panel rather than a row of pills: each row names the piece and
   what it is responsible for, so the two versions can be compared on substance
   instead of on logos. */
.ds-demo-version__stack {
  background: var(--ds-bg-soft);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.ds-demo-version--next .ds-demo-version__stack {
  background: rgba(239, 64, 86, 0.04);
  border-color: rgba(239, 64, 86, 0.18);
}

.ds-demo-version__stack-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
  margin: 0 0 12px;
}

.ds-demo-version__stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .ds-demo-version__stack-list {
    grid-template-columns: 1fr 1fr;
  }
}

.ds-demo-version__stack-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ds-demo-version__stack-item::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-border);
  transform: translateY(-2px);
}

.ds-demo-version--next .ds-demo-version__stack-item::before {
  background: var(--ds-brand);
}

.ds-demo-version__stack-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text);
  white-space: nowrap;
}

.ds-demo-version__stack-role {
  font-size: 12px;
  color: var(--ds-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Push the action to the bottom so both cards line up whatever their length. */
.ds-demo-version__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ds-demo-version__note {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin: 10px 0 0;
}
