/* Custom styles on top of the Webflow export. Linked from every page. */

/* Docked navbar (scrolled back up, past half the viewport): dark, blurred background.
   nav-down and bgdark are toggled by the page's scroll script. */
.section.top.inner {
  transition: background-color .3s ease, transform .3s ease;
}

.section.top.inner.nav-down.bgdark {
  background-color: rgba(25, 25, 25, .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}

/* Active menu item: same as hover. w--current on hub pages (Webflow sets it),
   is-active on detail pages (Webflow JS strips w--current when the URL differs). */
.navbar-link.w--current,
.navbar-link.is-active {
  color: var(--silver-deep);
  border-bottom-color: #f7f7f7;
}

/* Insights list */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 2.5rem;
}

.insight-card,
.contact-pill {
  border-bottom: 0;
  text-decoration: none;
}

.insight-card {
  display: block;
  color: inherit;
}

.insight-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: .5rem;
  transition: transform .4s ease, opacity .4s ease;
}

.insight-card:hover .insight-card__image {
  opacity: .9;
  transform: scale(1.01);
}

.insight-card__label {
  margin: 1.5rem 0 .75rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}

.insight-card__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
}

/* Floating contact pill, mobile only */
.contact-pill {
  display: none;
}

@media screen and (max-width: 767px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .insight-card__title {
    font-size: 1.375rem;
  }

  .div-block-12 .navbar-link:last-child {
    display: none;
  }

  .contact-pill {
    display: inline-flex;
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 30;
    padding: .625rem 1.25rem;
    border-radius: 999px;
    background-color: #f4f4f4;
    color: #191919;
    font-size: .9375rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  }
}

/* Row of phone screenshots: 3 in a row, horizontal swipe on mobile */
.phone-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
}
.phone-row > * {
  flex: 0 1 440px;
  min-width: 0;
}
.phone-row img {
  display: block;
  width: 100%;
}
@media screen and (max-width: 767px) {
  .phone-row {
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -20px;
    padding-right: 20px;
  }
  .phone-row::-webkit-scrollbar {
    display: none;
  }
  .phone-row > * {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}

/* Tech stack diagram (before → now) */
.stack-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.stack-step {
  flex: 1 1 0;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.stack-label {
  min-height: 1.2em;
  line-height: 1.2;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
}
.stack-card {
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .03);
}
.stack-card.is-now {
  border-color: transparent;
  background: linear-gradient(135deg, #40165d, #340c52);
}
.stack-card img {
  width: auto;
  height: 2.5rem;
}
.stack-astro {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
}
.stack-card img[alt="Cloudflare"] {
  height: 3.25rem;
}
.stack-astro img {
  height: 3.25rem;
}
.stack-note {
  font-size: 1rem;
  opacity: .75;
}
.stack-arrow {
  margin-top: 1.9rem;
  font-size: 2rem;
  opacity: .6;
}
@media screen and (max-width: 767px) {
  .stack-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .stack-step {
    max-width: none;
  }
  .stack-label:empty {
    display: none;
  }
  .stack-card {
    height: 7rem;
  }
  .stack-arrow {
    margin: 0;
    text-align: center;
    transform: rotate(90deg);
  }
}

/* iGlowly carousel thumbnail (video) */
.carousel-link.iglowly {
  overflow: hidden;
  background: #1d1127;
  transition: all .2s;
}
.carousel-link.iglowly video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live link: text arrow instead of the icon */
.live-arrow {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
}
