.neo-page {
  --neo-cyan: #73f0df;
  --neo-blue: #79b8ff;
  --neo-teal: #8affc1;
  --neo-gold: #f2bc72;
  --neo-ink: #081019;
  background:
    radial-gradient(circle at 14% 14%, rgba(115, 240, 223, 0.12), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(121, 184, 255, 0.14), transparent 30%),
    radial-gradient(circle at 78% 80%, rgba(138, 255, 193, 0.09), transparent 22%),
    linear-gradient(180deg, #071019 0%, #0a111a 42%, #081018 100%);
}

.neo-page .site-header {
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(28px) saturate(1.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
  border-bottom-color: rgba(255,255,255,0.05);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.neo-page .site-header a.nav-link[href="search.html"] {
  display: none;
}

.neo-page .section-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

#spaces,
#search,
#messaging {
  scroll-margin-top: 108px;
}

.neo-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 8vw, 96px) 0 clamp(42px, 6vw, 72px);
}

.neo-hero::before,
.neo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.neo-hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 12, 19, 0.96) 0%, rgba(7, 12, 19, 0.86) 40%, rgba(7, 12, 19, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 12, 19, 0.12) 0%, rgba(7, 12, 19, 0.78) 100%);
}

.neo-hero::after {
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(115, 240, 223, 0.16), transparent 32%),
    linear-gradient(45deg, transparent 56%, rgba(242, 188, 114, 0.1)),
    radial-gradient(circle at 80% 16%, rgba(121, 184, 255, 0.16), transparent 24%);
  mix-blend-mode: screen;
}

.neo-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 580px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.neo-hero-copy {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.neo-hero-copy h1 {
  margin: 0;
  max-width: 8.5ch;
  font-size: clamp(3.3rem, 7vw, 6.25rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.neo-hero-subtitle {
  margin: 0;
  max-width: 50ch;
  color: #aff7ef;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.neo-hero-copy p,
.neo-structure-copy p,
.neo-mini-grid span,
.neo-search-copy p {
  margin: 0;
  color: #d4e5f2;
  line-height: 1.72;
}

.neo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.neo-mini-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.neo-mini-grid strong {
  color: #fffaf2;
  letter-spacing: -0.03em;
}

.neo-hero-media {
  position: relative;
  height: clamp(580px, 60vw, 780px);
  min-width: 0;
}

.neo-hero-phone,
.neo-phone-shot,
.neo-message-card img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,0.3));
}

.neo-hero-phone {
  position: absolute;
  top: 50%;
  width: clamp(190px, 22vw, 270px);
  object-fit: contain;
}

.neo-hero-phone--spaces {
  left: 20%;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.neo-hero-phone--threads {
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.neo-hero-phone--message-options {
  left: 80%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(9deg);
}

.neo-mini-grid,
.neo-message-grid {
  display: grid;
  gap: 14px;
}

.neo-structure-shell,
.neo-search-shell {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  padding: 24px;
}

.neo-structure-shell {
  grid-template-columns: 1fr;
  align-items: center;
}

.neo-search-shell {
  grid-template-columns: 1fr;
  align-items: center;
}

.neo-structure-copy,
.neo-search-copy {
  display: grid;
  gap: 14px;
}

.neo-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.neo-shot-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.neo-phone-shot {
  position: absolute;
  max-width: 300px;
}

.neo-shot-cluster .neo-phone-shot {
  position: static;
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.neo-search-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  justify-items: center;
}

.neo-search-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.neo-search-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(135deg, rgba(115, 240, 223, 0.14), rgba(121, 184, 255, 0.12)),
    rgba(255,255,255,0.04);
  color: #f4fbff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.neo-search-stack .neo-phone-shot {
  position: static;
  max-width: 300px;
}

.neo-message-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.neo-message-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding: 20px;
}

.neo-message-card img {
  max-width: 280px;
  justify-self: center;
}

.neo-product-hunt {
  padding-top: 18px;
  padding-bottom: clamp(52px, 8vw, 88px);
}

.neo-product-hunt-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(22px, 4vw, 34px);
}

.neo-product-hunt-copy {
  display: grid;
  gap: 10px;
}

.neo-product-hunt-copy .section-label {
  margin-bottom: 0;
}

.neo-product-hunt-copy .section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.neo-product-hunt-copy p {
  margin: 0;
  max-width: 58ch;
  color: #d4e5f2;
  line-height: 1.7;
}

.neo-product-hunt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.neo-product-hunt-badge,
.neo-product-hunt-badge img {
  display: block;
}

.neo-product-hunt-badge img {
  width: 250px;
  height: 54px;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .neo-hero-shell,
  .neo-structure-shell,
  .neo-search-shell {
    grid-template-columns: 1fr;
  }

  .neo-hero-media {
    max-width: 760px;
    margin-inline: auto;
  }

  .neo-mini-grid,
  .neo-search-stack,
  .neo-message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #spaces,
  #search,
  #messaging {
    scroll-margin-top: 156px;
  }

  .neo-hero {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .neo-hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .neo-mini-grid,
  .neo-search-stack,
  .neo-message-grid {
    grid-template-columns: 1fr;
  }

  .neo-hero-media {
    height: 440px;
  }

  .neo-hero-phone--spaces {
    left: 22%;
  }

  .neo-hero-phone--threads {
    left: 55%;
  }

  .neo-hero-phone--message-options {
    left: 88%;
  }

  .neo-shot-cluster {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .neo-phone-shot,
  .neo-phone-shot--rooms,
  .neo-phone-shot--spaces,
  .neo-phone-shot--room-search {
    position: static;
    max-width: 270px;
  }

  .neo-structure-shell,
  .neo-search-shell {
    padding: 20px;
  }

  .neo-product-hunt-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .neo-product-hunt-actions {
    justify-content: flex-start;
  }

  .neo-product-hunt-badge img {
    max-width: 100%;
  }

}
