/* ===========================
   Demos Page
   =========================== */

/* Active nav link */
.nav-link-active {
  color: var(--c-teal-hover) !important;
  font-weight: 600;
}

/* ─── Page Hero ─────────────────────────────────────────────── */
.demos-hero {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  padding-block: 72px 60px;
  text-align: center;
}

.demos-hero-inner {
  max-width: 620px;
  margin-inline: auto;
}

.demos-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--c-text);
  margin-bottom: 16px;
}

.demos-hero-sub {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.75;
}

/* ─── Demos Section ─────────────────────────────────────────── */
.demos-section {
  background: var(--c-bg);
}

.demo-category {
  margin-bottom: 72px;
}

.demo-category:last-child {
  margin-bottom: 0;
}

.demo-category-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.demo-category-title {
  font-size: 1.5rem;
  color: var(--c-text);
  margin-bottom: 6px;
}

.demo-category-desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

/* ─── Demo Grid ─────────────────────────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* ─── Demo Card ─────────────────────────────────────────────── */
.demo-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.demo-card:hover {
  border-color: var(--c-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Responsive 16:9 video wrapper */
.demo-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--c-dark);
}

.demo-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-card-body {
  padding: 22px 24px 26px;
}

.demo-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-teal-hover);
  background: var(--c-teal-bg);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.demo-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.demo-card-desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ─── Placeholder card ──────────────────────────────────────── */
.demo-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: var(--c-bg-alt);
  border-style: dashed;
  cursor: default;
}

.demo-card-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.demo-placeholder-inner {
  text-align: center;
  color: var(--c-text-muted);
}

.demo-placeholder-icon {
  width: 52px;
  height: 52px;
  background: var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--c-text-muted);
}

.demo-placeholder-inner p {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ─── CTA ───────────────────────────────────────────────────── */
.demos-cta {
  background: linear-gradient(135deg, #141630 0%, #1D1F3D 60%, #222448 100%);
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}

.demos-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 80% 50%, rgba(90, 191, 182, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.demos-cta-inner {
  position: relative;
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
}

.demos-cta-inner h2 {
  color: #fff;
  margin-bottom: 14px;
}

.demos-cta-inner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.demos-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .demos-hero {
    padding-block: 52px 44px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-card-placeholder {
    min-height: 160px;
  }
}
