/* Landing story: hero, jello track toggle, pinned walkthrough. */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgb(var(--gray-950) / 0.78);
  border-bottom: 1px solid rgb(var(--gray-800) / 0.6);
}
.landing-nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.landing-nav__left { justify-self: start; }
.landing-nav__mid {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.landing-nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-nav a.ghost {
  font-size: 0.875rem;
  color: rgb(var(--gray-400));
}
.landing-nav a.ghost:hover { color: rgb(var(--gray-100)); }
.ghost.hidden, .hidden { display: none; }
.signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: rgb(var(--accent));
}
.signin-btn:hover { filter: brightness(1.08); }

.hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 5rem;
}
.hero__mark { height: 5.5rem; width: auto; margin-bottom: 2rem; }
.hero__tag {
  font-size: clamp(1.75rem, 4.2vw, 3.15rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
  color: rgb(var(--gray-50));
}
.hero__lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: rgb(var(--gray-400));
  font-size: 1.05rem;
  line-height: 1.55;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero__chips span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--gray-500));
  border: 1px solid rgb(var(--gray-800));
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.story {
  position: relative;
}
.story__pin {
  position: sticky;
  top: 4rem;
  height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
  overflow: hidden;
}
.story__track { height: 380vh; }

.jello {
  align-self: center;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgb(var(--gray-900));
  border: 1px solid rgb(var(--gray-800));
  border-radius: 999px;
  padding: 4px;
  width: min(22rem, 100%);
  margin-bottom: 1.5rem;
}
.jello__blob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #7457d1;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.jello[data-track="development"] .jello__blob {
  transform: translateX(100%);
}
.jello button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: rgb(var(--gray-400));
  font-size: 0.85rem;
  font-weight: 550;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.jello[data-track="integration"] button[data-track="integration"],
.jello[data-track="development"] button[data-track="development"] {
  color: #fff;
}

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}
.stage__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.stage__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.65rem;
}
.stage__price {
  margin-top: 1rem;
  font-size: 1.35rem;
  font-weight: 560;
}
.stage__price span { color: rgb(var(--gray-500)); font-size: 0.9rem; font-weight: 400; }
.stage__body {
  margin-top: 0.85rem;
  color: rgb(var(--gray-400));
  line-height: 1.55;
  max-width: 34rem;
}
.buy-btn {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.55rem;
  background: rgb(var(--accent));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 550;
}
.buy-btn:hover { filter: brightness(1.08); }

.frame {
  background: rgb(var(--gray-900));
  border: 1px solid rgb(var(--gray-800));
  border-radius: 1.1rem;
  min-height: 22rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.frame__chrome {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.frame__chrome i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
  background: rgb(var(--gray-700));
  display: block;
}

.nodes { display: flex; align-items: center; justify-content: center; gap: 0; height: 16rem; }
.node {
  background: rgb(var(--gray-800));
  border: 1px solid rgb(var(--gray-700));
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.72rem;
  color: rgb(var(--gray-200));
  min-width: 5.5rem;
  text-align: center;
}
.node.is-live { border-color: #7457d1; color: #ddd6fe; }
.wire {
  height: 2px;
  width: 2.2rem;
  background: linear-gradient(90deg, rgb(var(--gray-700)), #7457d1, rgb(var(--gray-700)));
  flex-shrink: 0;
}
.fan {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.tile {
  background: rgb(var(--gray-800));
  border-radius: 0.6rem;
  height: 5.2rem;
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: auto 12% 12% 12%;
  height: 0.45rem;
  border-radius: 99px;
  background: rgb(var(--gray-600));
}
.tile.is-hero { grid-column: 1 / -1; height: 7.2rem; background: linear-gradient(135deg, #2a2150, #7457d1); }
.dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.metric {
  background: rgb(var(--gray-800));
  border-radius: 0.6rem;
  padding: 0.85rem;
}
.metric b { display: block; font-size: 1.25rem; color: rgb(var(--gray-50)); }
.metric span { font-size: 0.7rem; color: rgb(var(--gray-500)); }
.pager {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
}
.page-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgb(var(--gray-800));
  border-radius: 0.5rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  color: rgb(var(--gray-300));
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 99px; background: #22c55e; }

.close {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.close h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}
.close p { color: rgb(var(--gray-400)); margin-top: 0.75rem; }

@media (max-width: 860px) {
  .landing-nav__mid { display: none; }
  .landing-nav__inner { grid-template-columns: 1fr auto; }
  .stage { grid-template-columns: 1fr; gap: 1.25rem; }
  .frame { min-height: 16rem; }
  .nodes { height: 12rem; transform: scale(0.92); }
  .hero__mark { height: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jello__blob { transition: none; }
  .story__pin { position: relative; height: auto; }
  .story__track { height: auto; }
}
