/* Projects / Project Demo page */

.pj-page {
  --pj-brand: #3384fc;
  --pj-brand-dark: #1d4ed8;
  --pj-ink: #0f172a;
  --pj-muted: #64748b;
  --pj-line: #e2e8f0;
  --pj-surface: #ffffff;
}

/* Hero */
.pj-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.pj-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #0b1220 0%, #111827 42%, #0f172a 100%);
}

.pj-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(51, 132, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 132, 252, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
}

.pj-hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
}

.pj-hero-glow--a {
  top: -8rem;
  right: -4rem;
  width: 28rem;
  height: 28rem;
  background: rgba(51, 132, 252, 0.22);
}

.pj-hero-glow--b {
  bottom: -6rem;
  left: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(16, 185, 129, 0.12);
}

.pj-hero-shell {
  position: relative;
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .pj-hero-shell {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }
}

.pj-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.pj-crumb a {
  color: #cbd5e1;
  transition: color 0.15s;
}

.pj-crumb a:hover {
  color: #93c5fd;
}

.pj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.pj-eyebrow-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--pj-brand);
  box-shadow: 0 0 12px rgba(51, 132, 252, 0.7);
}

.pj-hero-inner {
  max-width: 44rem;
}

.pj-hero-inner h1 {
  font-size: clamp(1.875rem, 3.8vw, 2.875rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.pj-hero-lead {
  margin-top: 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #94a3b8;
}

.pj-highlights {
  display: grid;
  gap: 0.625rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .pj-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }
}

.pj-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.pj-highlights svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  color: #34d399;
}

.pj-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

@media (min-width: 768px) {
  .pj-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.pj-stat {
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.pj-stat dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pj-stat dd {
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

/* Bands */
.pj-band {
  padding: 3rem 0 3.5rem;
}

.pj-band--cta {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding-bottom: 4.5rem;
}

.pj-section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .pj-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.pj-section-head h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pj-ink);
}

.pj-section-head p {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pj-muted);
}

/* Filters */
.pj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pj-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--pj-line);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.pj-filter:hover {
  border-color: #bfdbfe;
  color: var(--pj-brand-dark);
}

.pj-filter.is-active {
  border-color: rgba(51, 132, 252, 0.35);
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--pj-brand-dark);
  box-shadow: 0 4px 14px -6px rgba(51, 132, 252, 0.35);
}

.pj-filter-count {
  display: inline-flex;
  min-width: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}

.pj-filter.is-active .pj-filter-count {
  background: rgba(51, 132, 252, 0.15);
  color: var(--pj-brand-dark);
}

.pj-results {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--pj-muted);
}

.pj-results strong {
  color: var(--pj-ink);
  font-weight: 600;
}

/* Grid */
.pj-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pj-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .pj-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Cards */
.pj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px -24px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 132, 252, 0.25);
  box-shadow: 0 24px 48px -24px rgba(51, 132, 252, 0.2);
}

.pj-card--featured {
  border-color: rgba(51, 132, 252, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 247, 255, 0.92) 100%);
}

@media (min-width: 1280px) {
  .pj-card--featured {
    grid-column: span 2;
  }

  .pj-card--featured .pj-preview {
    min-height: 11rem;
  }
}

.pj-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.pj-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pj-card-index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #cbd5e1;
}

.pj-card-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pj-card-category {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
}

.pj-card-live {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  transition: background 0.15s, border-color 0.15s;
}

.pj-card-live::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #10b981;
}

.pj-card-live:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.pj-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pj-ink);
}

.pj-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pj-muted);
}

.pj-card-metrics {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.pj-card-metrics dt {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.pj-card-metrics dd {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pj-ink);
}

.pj-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1rem;
  list-style: none;
}

.pj-card-tags li {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #475569;
}

/* Previews */
.pj-preview {
  position: relative;
  min-height: 9rem;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.pj-preview--lms {
  background: linear-gradient(135deg, #eef7ff 0%, #f8fafc 100%);
}

.pj-preview--pos {
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
}

.pj-preview--shop {
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 100%);
}

.pj-preview--enterprise,
.pj-preview--saas {
  background: linear-gradient(135deg, #ede9fe 0%, #f8fafc 100%);
}

.pj-preview--crm {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.pj-preview--healthcare {
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
}

.pj-preview--ai {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.pj-preview--mobile {
  background: linear-gradient(135deg, #fdf4ff 0%, #f8fafc 100%);
}

.pj-preview--fintech {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.pj-mock-bar {
  margin: 1.25rem 1.25rem 0;
  height: 0.5rem;
  width: 4rem;
  border-radius: 9999px;
  background: rgba(51, 132, 252, 0.35);
}

.pj-mock-lines {
  margin: 1rem 1.25rem 0;
}

.pj-mock-lines span {
  display: block;
  height: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.35);
}

.pj-mock-lines span.is-short {
  width: 66%;
}

.pj-mock-pos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 70%;
  margin: 2rem auto 0;
}

.pj-mock-pos span {
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pj-mock-shop {
  margin: 1.25rem;
}

.pj-mock-hero {
  display: block;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pj-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.pj-mock-grid i {
  display: block;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-style: normal;
}

.pj-mock-enterprise {
  margin: 1.5rem 1.25rem 0;
}

.pj-mock-enterprise span {
  display: block;
  height: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pj-mock-enterprise span:nth-child(2) {
  width: 80%;
}

.pj-mock-enterprise span:nth-child(3) {
  height: 2rem;
  border-radius: 0.5rem;
}

.pj-mock-crm {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem;
  height: 5.5rem;
}

.pj-mock-crm-sidebar {
  width: 28%;
  border-radius: 0.5rem;
  background: rgba(51, 132, 252, 0.15);
}

.pj-mock-crm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pj-mock-crm-main i {
  display: block;
  height: 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  font-style: normal;
}

.pj-mock-crm-main i:nth-child(2) {
  width: 75%;
}

.pj-mock-health {
  margin: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pj-mock-health-card {
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
}

.pj-mock-health-card.is-accent {
  background: rgba(16, 185, 129, 0.2);
}

.pj-mock-health-line {
  grid-column: 1 / -1;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
}

.pj-mock-ai {
  margin: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pj-mock-ai-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  line-height: 1.4;
}

.pj-mock-ai-bubble.is-user {
  align-self: flex-end;
  background: rgba(51, 132, 252, 0.25);
  color: #e2e8f0;
}

.pj-mock-ai-bubble.is-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pj-mock-mobile {
  width: 42%;
  margin: 0.75rem auto 0;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 2px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}

.pj-mock-mobile-notch {
  display: block;
  width: 2rem;
  height: 0.25rem;
  margin: 0 auto 0.5rem;
  border-radius: 9999px;
  background: #e2e8f0;
}

.pj-mock-mobile-card {
  display: block;
  height: 2rem;
  margin-bottom: 0.375rem;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #ede9fe, #dbeafe);
}

.pj-mock-mobile-card.is-sm {
  height: 1.25rem;
  width: 70%;
  background: #f1f5f9;
}

.pj-mock-fintech {
  margin: 1.25rem;
  color: #e2e8f0;
}

.pj-mock-fintech-balance {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pj-mock-fintech-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  height: 3rem;
  margin-top: 0.75rem;
}

.pj-mock-fintech-chart i {
  flex: 1;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, #3384fc, rgba(51, 132, 252, 0.2));
  font-style: normal;
}

.pj-mock-fintech-chart i:nth-child(1) { height: 40%; }
.pj-mock-fintech-chart i:nth-child(2) { height: 65%; }
.pj-mock-fintech-chart i:nth-child(3) { height: 50%; }
.pj-mock-fintech-chart i:nth-child(4) { height: 85%; }
.pj-mock-fintech-chart i:nth-child(5) { height: 70%; }

/* Buttons */
.pj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.pj-btn--primary {
  background: var(--pj-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(51, 132, 252, 0.55);
}

.pj-btn--primary:hover {
  background: var(--pj-brand-dark);
}

.pj-btn--ghost {
  border: 1px solid var(--pj-line);
  background: #fff;
  color: #475569;
}

.pj-btn--ghost:hover {
  border-color: #bfdbfe;
  color: var(--pj-brand-dark);
}

/* CTA */
.pj-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--pj-line);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.15);
}

@media (min-width: 768px) {
  .pj-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
}

.pj-cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pj-brand);
}

.pj-cta h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pj-ink);
}

.pj-cta-copy p:last-child {
  margin-top: 0.625rem;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pj-muted);
}

.pj-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
