/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #2E2E2E;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(180, 180, 180, 0.45);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor.hover {
  width: 32px;
  height: 32px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}


/* ============================================
   PAGE LAYOUT (3-col: sidebar | content | spacer)
   ============================================ */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  min-height: 100vh;
  transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */
.side-nav {
  position: sticky;
  top: 0px;
  height: 100vh;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 50;
  grid-column: 1;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #626262;
}

.side-nav-back svg {
  width: 16px;
  height: 16px;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #9194A8;
  padding: 2px 0;
  transition: color 0.2s ease, font-weight 0.2s ease, padding-left 0.3s ease;
  width: fit-content;
}

.side-nav-link:hover {
  color: #666;
  opacity: 1;
}

.side-nav-link.active {
  color: #2E2E2E;
  font-weight: 500;
  padding-left: 18px;
}

.side-nav-links {
  position: relative;
}

.nav-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #2E2E2E;
  left: 0;
  top: 0;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ============================================
   MAIN GRID
   ============================================ */
.main-grid {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 48px 96px;
  grid-column: 2;
}

/* ============================================
   CONTENT COLUMN
   ============================================ */
.content-col {
  width: 100%;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.project-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #9194A8;
}

.project-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9194A8;
  background: rgba(145, 148, 168, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
}

.project-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #2E2E2E;
}

/* ============================================
   HERO IMAGE
   ============================================ */
.hero-image {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.hero-image.loaded {
  background: none;
  animation: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   METADATA ROW
   ============================================ */
.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.meta-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9194A8;
}

.meta-value {
  font-size: 16px;
  font-weight: 400;
  color: rgba(46, 46, 46, 0.8);
  line-height: 1.5;
}

.meta-value.meta-muted {
  font-size: 13px;
  color: #9194A8;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .meta-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .meta-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SECTION
   ============================================ */
.section {
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9194A8;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #2E2E2E;
  margin-bottom: 20px;
}


.section-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(46, 46, 46, 0.8);
  margin-bottom: 40px;
}

.section-desc + .section-desc {
  margin-top: -20px;
}

.section-desc:last-child {
  margin-bottom: 0;
}

.section-desc + .reflection-list {
  margin-top: -20px;
}

.sub-heading {
  font-size: 20px;
  font-weight: 550;
  line-height: 1.3;
  color: #2E2E2E;
  margin-bottom: 20px;
}


.section-desc + .sub-heading {
  margin-top: -20px;
}


/* ============================================
   MEDIA BLOCKS
   ============================================ */
.media-block {
  margin-bottom: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.img-placeholder,
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.img-placeholder span,
.video-placeholder span {
  font-size: 13px;
  font-weight: 450;
  color: #aaa;
  letter-spacing: 0.01em;
}

/* ============================================
   MEDIA CAPTION
   ============================================ */
.media-caption {
  font-size: 14px;
  font-weight: 400;
  color: #9194A8;
  margin-top: 8px;
  text-align: center;
}

.media-block:has(+ .media-caption) {
  margin-bottom: 0;
}

.media-caption a {
  color: #2E2E2E;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.media-caption a:hover {
  color: #1A1AE5;
  opacity: 1;
}

/* ============================================
   PULL QUOTE
   ============================================ */
.pull-quote {
  font-size: 16px;
  font-weight: 450;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  border-left: 2px solid #d0d0d0;
  padding-left: 24px;
  margin: 40px 0;
}

/* ============================================
   CHALLENGES GRID
   ============================================ */
.section-heading + .challenges-grid {
  margin-top: 20px;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.challenge-card {
  background: #F7F8FA;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.challenge-icon {
  margin-bottom: 40px;
  color: #2E2E2E;
  height: 28px;
  display: block;
}


.challenge-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #2E2E2E;
  margin-bottom: 12px;
}

.challenge-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(46, 46, 46, 0.7);
}

@media (max-width: 768px) {
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================
   DEMO GRID
   ============================================ */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0 48px;
}

@media (min-width: 640px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-card {
  display: flex;
  flex-direction: column;
}

.demo-video {
  border-radius: 8px;
  margin-bottom: 14px;
}

.demo-caption {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.demo-subcaption {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #777;
}

/* ============================================
   FLOW TAGS
   ============================================ */
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-desc + .flow-tags {
  margin-top: -20px;
}

.flow-tag {
  font-size: 14px;
  font-weight: 500;
  color: #2E2E2E;
  background: #F7F8FA;
  padding: 8px 16px;
  border-radius: 100px;
}

.flow-arrow {
  font-size: 16px;
  color: #9194A8;
}

/* ============================================
   REFLECTION LIST
   ============================================ */
.reflection-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.reflection-list li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(46, 46, 46, 0.8);
}

.reflection-list li::marker {
  color: #bbb;
}


/* ============================================
   METRICS GRID
   ============================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.metric-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-number {
  font-size: 24px;
  font-weight: 600;
  color: #2E2E2E;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ============================================
   FUNNEL FLOW
   ============================================ */
.funnel-flow {
  display: flex;
  align-items: stretch;
  margin-bottom: 80px;
}

.funnel-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.funnel-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}

.funnel-number {
  font-size: 36px;
  font-weight: 600;
  color: #2E2E2E;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.funnel-number--green {
  color: #34A853;
}

.funnel-label {
  font-size: 14px;
  font-weight: 400;
  color: #9194A8;
  line-height: 1.4;
  margin-top: 2px;
}

.funnel-tag {
  font-size: 12px;
  font-weight: 500;
  color: #9194A8;
  background: rgba(145, 148, 168, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .funnel-flow {
    flex-direction: column;
    gap: 12px;
  }

  .funnel-arrow {
    justify-content: center;
    transform: rotate(90deg);
    padding: 0;
  }
}

.metric-card.secondary {
  background: #F7F8FA;
  border: none;
  box-shadow: none;
}

.metric-card.secondary .metric-number {
  font-size: 20px;
}

.metric-card.secondary .metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.metric-card.secondary .metric-icon svg {
  width: 15px;
  height: 15px;
}

.metric-context {
  font-size: 14px;
  font-weight: 400;
  color: rgba(46, 46, 46, 0.7);
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
}

.metric-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
}

.metric-bullets li {
  font-size: 14px;
  font-weight: 400;
  color: rgba(46, 46, 46, 0.7);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.metric-bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34A853;
  position: absolute;
  left: 0;
  top: 8px;
}

.metric-insight {
  font-size: 13px;
  font-weight: 500;
  color: #34A853;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================
   GROWTH TABS
   ============================================ */
.growth-items {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.growth-item {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.growth-item-media {
  flex: 1;
  min-width: 0;
}

.growth-item-media .media-block {
  margin-bottom: 0;
}

.growth-item-text {
  flex: 0 0 280px;
}

.growth-item-title {
  font-size: 20px;
  font-weight: 600;
  color: #2E2E2E;
  margin-bottom: 12px;
  line-height: 1.3;
}

.install-tabs {
  display: flex;
  align-items: center;
  background: #F7F8FA;
  border-radius: 100px;
  padding: 6px;
  margin-bottom: 32px;
  gap: 0;
  position: relative;
}

.install-tabs-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.install-tabs-slider.right {
  left: 50%;
}

.install-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  z-index: 1;
}

.install-tab:hover {
  background: transparent;
}

.install-tab.active {
  background: transparent;
}

.install-tab-title {
  font-size: 16px;
  font-weight: 600;
  color: #2E2E2E;
}

.install-tab-sub {
  font-size: 14px;
  font-weight: 400;
  color: #9194A8;
}

.install-panel {
  display: none;
}

.install-panel.active {
  display: block;
}

.growth-item-desc {
  font-size: 14px;
  font-weight: 400;
  color: #2e2e2ecc;
  line-height: 1.6;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: none;
  transition: background 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.media-block img,
.media-block video,
.hero-image img {
  cursor: pointer;
}

video.hover-controls::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

video.hover-controls:hover::-webkit-media-controls {
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  font-weight: 450;
  color: #888;
}

.footer-credit {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    display: none;
  }

  .main-grid {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .main-grid {
    padding: 36px 24px 72px;
  }

  .project-title {
    font-size: 32px;
  }

  .section-heading {
    font-size: 24px;
  }

  .sub-heading {
    font-size: 19px;
  }

  .hero {
    margin-bottom: 56px;
  }

  .section {
    margin-bottom: 64px;
  }

  .footer-inner {
    padding: 32px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 28px;
  }

  .section-heading {
    font-size: 22px;
  }

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

/* ============================================
   CHATBASE SIDE PANEL
   ============================================ */
.chat-toggle {
  position: fixed;
  bottom: -60px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 12px 20px;
  background: #2E2E2E;
  color: #fff;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  z-index: 9998;
  pointer-events: none;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.chat-toggle.visible {
  bottom: 24px;
  pointer-events: auto;
}

.chat-toggle:hover {
  background: #1a1a1a;
}

.chat-toggle:focus {
  outline: none;
}

body {
  transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.chat-open {
  margin-right: 25%;
}

body.chat-open .page-layout {
  grid-template-columns: 200px 1fr 0px;
}

body.chat-open .side-nav {
  padding-left: 24px;
  padding-right: 24px;
}


.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 25%;
  height: 100vh;
  background: #F7F8FA;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: 'General Sans', sans-serif;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-panel.open {
  transform: translateX(0);
}

.chat-panel iframe {
  flex: 1;
  background: #F7F8FA;
}

.chat-panel-footer {
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 12px;
  font-family: 'General Sans', sans-serif;
  color: #9194A8;
}

.chat-panel-footer kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: 'General Sans', sans-serif;
  color: #666;
  background: #F7F8FA;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}


