#codexa-project-detail {
  --pd-navy: #0f1d3a;
  --pd-blue: #2563eb;
  --pd-blue-dark: #1d4ed8;
  --pd-gray: #64748b;
  --pd-gray-light: #94a3b8;
  --pd-border: #e2e8f0;
  --pd-bg-soft: #f8fafc;
  --pd-shadow: 0 4px 24px rgba(15, 29, 58, 0.06);
  --pd-shadow-lg: 0 12px 40px rgba(15, 29, 58, 0.08);
  --pd-max: 1180px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--pd-navy);
  background: #fff;
  position: relative;
  z-index: 2;
  display: block !important;
  padding: 110px 24px 72px;
}

#codexa-project-detail *,
#codexa-project-detail *::before,
#codexa-project-detail *::after {
  box-sizing: border-box;
}

.pd-container {
  max-width: var(--pd-max);
  margin: 0 auto;
}

.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pd-gray);
  margin-bottom: 32px;
}

.pd-breadcrumb a {
  color: var(--pd-gray);
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  color: var(--pd-blue);
}

.pd-breadcrumb span:last-child {
  color: var(--pd-navy);
  font-weight: 600;
}

/* Hero */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pd-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pd-badge svg {
  width: 14px;
  height: 14px;
}

.pd-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.pd-categories {
  color: var(--pd-blue);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pd-hero-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pd-gray);
  max-width: 540px;
}

.pd-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.pd-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pd-meta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--pd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-meta-icon svg {
  width: 18px;
  height: 18px;
}

.pd-meta-label {
  font-size: 12px;
  color: var(--pd-gray-light);
  margin-bottom: 2px;
}

.pd-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-navy);
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.pd-btn-primary {
  background: var(--pd-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.pd-btn-primary:hover {
  background: var(--pd-blue-dark);
}

.pd-btn-outline {
  background: #fff;
  color: var(--pd-blue);
  border: 1.5px solid var(--pd-blue);
}

.pd-btn-outline:hover {
  background: #eff6ff;
}

.pd-btn svg {
  width: 16px;
  height: 16px;
}

.pd-hero-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-radius: 24px;
  padding: 24px;
}

.pd-laptop {
  width: 100%;
  max-width: 400px;
  background: #111827;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 0;
  box-shadow: var(--pd-shadow-lg);
}

.pd-laptop-screen {
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.pd-laptop-screen img,
.pd-phone-screen img,
.pd-overview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-phone {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: 100px;
  background: #1f2937;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: rotate(6deg);
}

.pd-phone-screen {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
}

/* Stats */
.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 16px;
  box-shadow: var(--pd-shadow);
  margin-bottom: 56px;
  overflow: hidden;
}

.pd-stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--pd-border);
}

.pd-stat:last-child {
  border-right: none;
}

.pd-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--pd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-stat-icon svg {
  width: 20px;
  height: 20px;
}

.pd-stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.pd-stat-label {
  font-size: 13px;
  color: var(--pd-gray);
}

/* Overview + Features */
.pd-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-bottom: 56px;
}

.pd-section-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pd-overview p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--pd-gray);
}

.pd-overview-img {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pd-border);
  box-shadow: var(--pd-shadow);
  aspect-ratio: 16 / 9;
}

.pd-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-feature {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pd-border);
}

.pd-feature:last-child {
  border-bottom: none;
}

.pd-feature-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--pd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-feature-check svg {
  width: 14px;
  height: 14px;
}

.pd-feature h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.pd-feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pd-gray);
}

/* Tech + Platform */
.pd-tech-platform {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  background: var(--pd-bg-soft);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 56px;
}

.pd-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pd-tech-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}

.pd-tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-platform-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-platform-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.pd-platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--pd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-blue);
}

.pd-platform-icon svg {
  width: 20px;
  height: 20px;
}

/* Gallery */
.pd-gallery-section {
  margin-bottom: 24px;
}

.pd-gallery-wrap {
  position: relative;
}

.pd-gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.pd-gallery-track::-webkit-scrollbar {
  display: none;
}

.pd-gallery-slide {
  flex: 0 0 calc(20% - 13px);
  min-width: 180px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pd-border);
  aspect-ratio: 9 / 16;
  background: #ffffff;
  padding: 12px;
}

.pd-gallery-slide.wide {
  flex: 0 0 calc(33% - 11px);
  aspect-ratio: 16 / 10;
  min-width: 240px;
}

.pd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pd-border);
  background: #fff;
  box-shadow: var(--pd-shadow);
  color: var(--pd-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pd-gallery-nav:hover {
  background: #f8fafc;
}

.pd-gallery-nav.prev {
  left: -12px;
}

.pd-gallery-nav.next {
  right: -12px;
}

.pd-gallery-nav svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .pd-hero,
  .pd-split,
  .pd-tech-platform {
    grid-template-columns: 1fr;
  }

  .pd-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-stat:nth-child(2) {
    border-right: none;
  }

  .pd-stat:nth-child(1),
  .pd-stat:nth-child(2) {
    border-bottom: 1px solid var(--pd-border);
  }

  .pd-hero-visual {
    order: -1;
    min-height: 280px;
  }

  .pd-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #codexa-project-detail {
    padding: 96px 16px 56px;
  }

  .pd-stats {
    grid-template-columns: 1fr;
  }

  .pd-stat {
    border-right: none;
    border-bottom: 1px solid var(--pd-border);
  }

  .pd-stat:last-child {
    border-bottom: none;
  }

  .pd-meta-grid {
    grid-template-columns: 1fr;
  }

  .pd-tech-grid {
    grid-template-columns: 1fr;
  }

  .pd-gallery-nav {
    display: none;
  }
}

/* Hide all Framer home page sections inside #main on Project detail routes */
#codexa-project-detail ~ #main .framer-UKDkJ > *:not(.framer-hnpj9p-container):not(.framer-1haw2cq):not(.framer-jsdzb-container):not(nav):not(footer):not(style),
#codexa-project-detail ~ #main > div > *:not(.framer-hnpj9p-container):not(.framer-1haw2cq):not(.framer-jsdzb-container):not(nav):not(footer):not(style),
#main .framer-UKDkJ > .ssr-variant,
#main .framer-146fwfe,
#main .framer-81egp,
#main .framer-88jhvu {
  display: none !important;
}

/* Ensure Footer and its inner responsive variants remain fully visible */
#main .framer-hnpj9p-container,
#main .framer-1haw2cq,
#main footer {
  display: flex !important;
}

#main footer .ssr-variant,
#main .framer-1haw2cq .ssr-variant {
  display: contents !important;
}

/* Remove 100vh min-height constraint on #main and .framer-UKDkJ so no white box appears below footer */
#main,
#main .framer-UKDkJ,
.framer-UKDkJ {
  min-height: auto !important;
  height: auto !important;
}

#main .framer-1haw2cq,
#main footer {
  background-color: var(--token-ac4ad6cb-9810-4691-952f-87a30cbeca2c, #7584d6) !important;
}




